mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 16:56:37 +01:00
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5016 311d38ba-8fff-0310-9ca6-ca027cbcb966
400 B
400 B
--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/pidof $1
[ "$pid" != "" ] && kill $pid
}