[oe] gsmd machine dependent configuration and PACKAGE_ARCH
Koen Kooi
koen at dominion.kabel.utwente.nl
Wed Aug 22 08:31:57 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
pHilipp Zabel schreef:
> Hi,
>
> I don't like how currently all (lib)gsmd(-plugin-...) packages are
> PACKAGE_ARCH="${MACHINE_ARCH}" just because of the small
> /etc/default/gsmd configuration file. Are there any objections to the
> patch below? It uses a single configuration file for all currently
> supported machines, parsing /proc/cpuinfo similarly to how Xserver
> configuration is done in xserver-kdrive-common.
One small suggestion:
Author: mickeyl at openembedded.org
Revision: a11f318a90beef34d84711b348b891eddfabc2bf
packages/initscripts/initscripts-1.0/functions
initscripts: add a functions script that is supposed to be sourced from individual init
scripts providing some useful functions.
added cpuinfo_id() and killproc() for a start
============================================================
- --- packages/initscripts/initscripts-1.0/functions cdb873e9c652d090c2e40fa96d5fd2db86db5413
+++ packages/initscripts/initscripts-1.0/functions cdb873e9c652d090c2e40fa96d5fd2db86db5413
@@ -0,0 +1,17 @@
+# -*-Shell-script-*-
+#
+# functions This file contains functions to be used by most or all
+# shell scripts in the /etc/init.d directory.
+#
+
+cpuinfo_id() { # return the Hardware module ID
+ awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
+}
+
+killproc() { # kill the named process(es)
+ pid=`/bin/ps -e x |
+ /bin/grep $1 |
+ /bin/grep -v grep |
+ /bin/sed -e 's/^ *//' -e 's/ .*//'`
+ [ "$pid" != "" ] && kill $pid
+}
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFGy/R9MkyGM64RGpERAlJ1AJ0YIedmbKy5wQ+ERcw5bFcBJOeifgCcDTBc
7WwtqT6BHh/lwnT6kiDzgBQ=
=HRWu
-----END PGP SIGNATURE-----
More information about the Openembedded-devel
mailing list