--- trunk/magellan-initscripts/etc/rc.d/init.d/functions 2010/07/14 11:02:11 1092 +++ trunk/magellan-initscripts/etc/rc.d/init.d/functions 2010/07/14 13:07:30 1093 @@ -40,7 +40,7 @@ COLOREDSTAR="${COLBLUE}(${COLGREEN}*${COLBLUE})${COLDEFAULT} " -#location to save the started services +# location to save the started services svcdir="/var/lib/init.d" svclib="/lib/rcscripts" svcmount="no" @@ -49,16 +49,11 @@ # dummy function; needed if splashutils are not installed -splash() { - return 0 -} - +splash() { return 0; } -#source splash functions if exists +# source splash functions if exists [ -f /etc/init.d/splash-functions ] && source /etc/init.d/splash-functions - - print_error_msg() { return 0 @@ -98,7 +93,6 @@ local SVCD_INITSCRIPT local x - #do this only if proc is mounted [ ! -f /proc/mounts ] && return 0 @@ -288,7 +282,6 @@ else signal=${2##-} signal=${signal##SIG} - fi getpids $1 @@ -398,7 +391,8 @@ } # searches /proc/mounts for mounted fstypes (like ext3) -is_fstype_mounted() { +is_fstype_mounted() +{ local filesys local i filesys=$1 @@ -410,7 +404,8 @@ } # searches /proc/mounts for mounted fs names (like udev, proc) -is_fs_mounted() { +is_fs_mounted() +{ local filesys local i filesys=$1 @@ -422,7 +417,8 @@ } # checks if kernel supports fs xy -kernel_supports_fs() { +kernel_supports_fs() +{ local filesys local i filesys=$1 @@ -439,7 +435,8 @@ # the reference file # # EXAMPLE: if is_older_than a.out *.o ; then ... -is_older_than() { +is_older_than() +{ local x= local ref="$1" shift