reinstate an initscript for the backend so that /etc/iproute2/rt_tables gets cleaned...
[planetlab-umts-tools.git] / umts.init
index 641b001..648523b 100755 (executable)
--- a/umts.init
+++ b/umts.init
@@ -1,22 +1,10 @@
 #!/bin/bash
-# chkconfig: - 87 30
-# description: Loads modules needed for the umts connection and uses gcom
+# required at boot-time for smooth operation of the umts-related scripts
+# chkconfig: 2345 99 01
 
-. /usr/lib/umts_functions
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-case "$1" in
-    start)
-       echo "Initializing the umts component..."
-       if init_umts; then echo "Done."; fi
-    ;;
-
-    *)
-       echo "usage: $0 start"
-    ;;
+function start () { sed -i -e '/slcip/ d' /etc/iproute2/rt_tables ; }
 
+case $1 in
+     start) start;;
+     *) ;;
 esac
-
-exit 0
-