install a 'sliceip' initscript that cleans up stuff at boot-time for the sake of...
Thierry Parmentelat [Fri, 12 Jul 2013 17:10:09 +0000 (19:10 +0200)]
root-context/init/sliceip.init [new file with mode: 0755]
root-context/vsys-scripts.spec

diff --git a/root-context/init/sliceip.init b/root-context/init/sliceip.init
new file mode 100755 (executable)
index 0000000..648523b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+# required at boot-time for smooth operation of the umts-related scripts
+# chkconfig: 2345 99 01
+
+function start () { sed -i -e '/slcip/ d' /etc/iproute2/rt_tables ; }
+
+case $1 in
+     start) start;;
+     *) ;;
+esac
index 3f18819..7cfb942 100644 (file)
@@ -39,13 +39,15 @@ make -C root-context
 
 %install
 mkdir -p $RPM_BUILD_ROOT/vsys
-cp root-context/exec/* $RPM_BUILD_ROOT/vsys
+install -D root-context/exec/* $RPM_BUILD_ROOT/vsys/
+install -D root-context/init/sliceip.init ${prefix}/etc/rc.d/init.d/sliceip
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-/vsys/*
+/vsys/
+/etc/rc.d/init.d/
 
 %post