diff options
author | Chia-I Wu <olv@openmoko.com> | 2008-10-28 16:49:38 +0800 |
---|---|---|
committer | John Lee <john_lee@openmoko.org> | 2009-01-12 14:29:03 +0800 |
commit | 321b7dc88878ff24a48065048e01957d440a81c5 (patch) | |
tree | bcc1f0efb06afb662e250a45b83585870413eb30 /packages/initscripts/initscripts-1.0/functions | |
parent | 0cd7f559c01c45f5fc287e533b7456fc2ba79cb9 (diff) |
fastboot: initscripts-openmoko: Replacement for initscripts.
Move the common files into 'files' dir and keep Openmoko specific
files under initscripts-openmoko. 'finish' was renamed to
'finish.sh', so various recipes have to be modified as well.
Diffstat (limited to 'packages/initscripts/initscripts-1.0/functions')
-rw-r--r-- | packages/initscripts/initscripts-1.0/functions | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/packages/initscripts/initscripts-1.0/functions b/packages/initscripts/initscripts-1.0/functions deleted file mode 100644 index fb9a914e4d..0000000000 --- a/packages/initscripts/initscripts-1.0/functions +++ /dev/null @@ -1,17 +0,0 @@ -# -*-Shell-script-*- -# -# functions This file contains functions to be used by most or all -# shell scripts in the /etc/init.d directory. -# - -machine_id() { # return the machine ID - awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($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 -} |