]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/functions
Modified vdramin initscript
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / functions
index 83d91695ed5bdadc21427bb637e6d55d9b69e141..04acda3cf258b14d5df943b1d41a5398ecedd9ab 100644 (file)
@@ -22,7 +22,7 @@ export PATH="/bin:/usr/bin:/sbin:/usr/sbin"
 RELOADSIG="HUP"
 
 # Number of seconds between STOPSIG and FALLBACK when stopping processes
-KILLDELAY="3"
+KILLDELAY="10"
 
 ## Screen Dimensions
 # Find current screen size
@@ -679,15 +679,21 @@ log_warning_msg() {
        return 0
 }
 
-animate()
-{
-       if [ $# = 0 ]
-               then
-               echo "Usage: animate {hook}"
-               exit 1
-       fi
-
-       splash "$*"
+run_subdir() {
+       DIR=$1
+       for i in $(ls -v ${DIR}* 2> /dev/null); do
+               check_script_status
+               OUT=$(echo $(basename ${i}) | awk -F- '{ print $2 }')
+               case "$OUT" in
+                       S) ${i} start   ;;
+                       K) ${i} stop ;;
+                       RS) ${i} restart ;;
+                       RL) ${i} reload ;;
+                       U) ${i} up ;;
+                       D) ${i} down ;;
+                       *) ${i} ;;
+               esac
+       done
 }
 
 # End $rc_base/init.d/functions