From: Thierry Parmentelat Date: Fri, 12 Jul 2013 17:10:09 +0000 (+0200) Subject: install a 'sliceip' initscript that cleans up stuff at boot-time for the sake of... X-Git-Tag: vsys-scripts-0.95-48~2 X-Git-Url: http://git.onelab.eu/?p=vsys-scripts.git;a=commitdiff_plain;h=6715f1303c2bd3601fdc1d635b2c23d06a096292 install a 'sliceip' initscript that cleans up stuff at boot-time for the sake of the sliceip script --- diff --git a/root-context/init/sliceip.init b/root-context/init/sliceip.init new file mode 100755 index 0000000..648523b --- /dev/null +++ b/root-context/init/sliceip.init @@ -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 diff --git a/root-context/vsys-scripts.spec b/root-context/vsys-scripts.spec index 3f18819..7cfb942 100644 --- a/root-context/vsys-scripts.spec +++ b/root-context/vsys-scripts.spec @@ -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