From 8276d6ef3f035028322f1063c98b9717cd80db09 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Mon, 20 Aug 2007 12:03:16 +0000 Subject: 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/initscripts/initscripts-1.0/functions (limited to 'packages/initscripts/initscripts-1.0/functions') diff --git a/packages/initscripts/initscripts-1.0/functions b/packages/initscripts/initscripts-1.0/functions new file mode 100644 index 0000000000..358fc6edb3 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/functions @@ -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 } '