--- trunk/magellan-initscripts/etc/rc.d/init.d/functions 2007/07/21 19:23:16 505 +++ trunk/magellan-initscripts/etc/rc.d/init.d/functions 2011/03/11 17:13:32 1241 @@ -1,5 +1,5 @@ #!/bin/bash -# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/functions,v 1.7 2007-07-21 19:23:16 niro Exp $ +# $Id$ # Begin $rc_base/init.d/functions - Run Level Control Functions @@ -40,25 +40,22 @@ 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" svcfstype="tmpfs" svcsize=1024 +rc_echo() { echo $@; } +rc_print() { rc_echo -e "${COLOREDSTAR}$@"; } # 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 +95,6 @@ local SVCD_INITSCRIPT local x - #do this only if proc is mounted [ ! -f /proc/mounts ] && return 0 @@ -288,7 +284,6 @@ else signal=${2##-} signal=${signal##SIG} - fi getpids $1 @@ -398,7 +393,8 @@ } # searches /proc/mounts for mounted fstypes (like ext3) -is_fstype_mounted() { +is_fstype_mounted() +{ local filesys local i filesys=$1 @@ -410,7 +406,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 +419,8 @@ } # checks if kernel supports fs xy -kernel_supports_fs() { +kernel_supports_fs() +{ local filesys local i filesys=$1 @@ -439,7 +437,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 @@ -456,3 +455,6 @@ return 1 } + +start_devicemanager() { touch /dev/.none; return 0; } +stop_devicemanager() { return 0; }