From b518901e4533042ccf9ac2aa12e05582d5629ad4 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 12 Jul 2013 12:23:23 +0200 Subject: [PATCH] reinstate an initscript for the backend so that /etc/iproute2/rt_tables gets cleaned up at boot time --- Makefile | 2 +- backend.spec | 4 ++-- umts.init | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 umts.init diff --git a/Makefile b/Makefile index 0982715..87fbdf2 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ install: install -D umts_functions ${prefix}/usr/lib/umts_functions install -D umtsd ${prefix}/vsys/umtsd install -D 96-umts-tools.rules ${prefix}/etc/udev/rules.d/96-umts-tools.rules - #install -D umts.init ${prefix}/etc/rc.d/init.d/umts + install -D umts.init ${prefix}/etc/rc.d/init.d/umts clean: find . -name "*~" -exec rm \{} \; diff --git a/backend.spec b/backend.spec index 1ae2800..ae22282 100644 --- a/backend.spec +++ b/backend.spec @@ -44,7 +44,7 @@ sleep 1 #/bin/sleep 2 #/sbin/chkconfig umts on /sbin/service vsys restart -#/etc/rc.d/init.d/umts start +/etc/rc.d/init.d/umts start %preun #/sbin/chkconfig umts off @@ -53,7 +53,7 @@ sleep 1 /vsys/umtsd /usr/lib/umts_functions /etc/udev/rules.d/96-umts-tools.rules -#/etc/rc.d/init.d/umts +/etc/rc.d/init.d/umts %defattr(-,root,root) diff --git a/umts.init b/umts.init new file mode 100755 index 0000000..648523b --- /dev/null +++ b/umts.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 -- 2.43.0