]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/functions
Dialctrl.pl integriert.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / functions
index e42bde346e2e24b224d1069039257a5cd0909ec2..3d82493cf6e0f2d5e8a2b2c8be7cd335403412a0 100644 (file)
@@ -157,10 +157,7 @@ print_error_msg()
        boot_mesg_flush
        boot_mesg -n "Press Enter to continue or wait 3 minutes..." ${INFO}
        boot_mesg "" ${NORMAL}
-       while sleep 180; do
-               read ENTER
-               break
-       done
+       read -t 180 ENTER
 }
 
 check_script_status()
@@ -682,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