blob: 514618770a7895f7d4e6213eca440b160d561612 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# -*-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/pidof $1`
[ "$pid" != "" ] && kill $pid
}
|