]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/functions
Wieder einmal die Netzwerkscripts.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / functions
index 83d91695ed5bdadc21427bb637e6d55d9b69e141..365dbe02ae3cac9666c7cd9c821aca3bb5cdd4c4 100644 (file)
@@ -679,15 +679,19 @@ 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 ;;
+                       *) ${i} ;;
+               esac
+       done
 }
 
 # End $rc_base/init.d/functions