From 5dee08e1714facb00a6bb16d41a1c9450ded9953 Mon Sep 17 00:00:00 2001 From: "Menno E. Duursma" Date: Thu, 13 May 2010 00:35:38 +0200 Subject: network/arptables: Updated for version 0.0.3 --- network/arptables/doinst.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'network/arptables/doinst.sh') diff --git a/network/arptables/doinst.sh b/network/arptables/doinst.sh index e2d05cefb50be..e2658e2fe1f40 100644 --- a/network/arptables/doinst.sh +++ b/network/arptables/doinst.sh @@ -1,5 +1,3 @@ -PRGNAM=arptables - config() { NEW="$1" OLD="$(dirname $NEW)/$(basename $NEW .new)" @@ -14,18 +12,18 @@ config() { } # Keep same permissions on rc files: -if [ -e etc/rc.d/init.d/$PRGNAM ]; then - cp -a etc/rc.d/init.d/$PRGNAM etc/rc.d/init.d/$PRGNAM.new.incoming - cat etc/rc.d/init.d/$PRGNAM.new > etc/rc.d/init.d/$PRGNAM.new.incoming - mv etc/rc.d/init.d/$PRGNAM.new.incoming etc/rc.d/init.d/$PRGNAM.new +if [ -e etc/rc.d/init.d/arptables ]; then + cp -a etc/rc.d/init.d/arptables etc/rc.d/init.d/arptables.new.incoming + cat etc/rc.d/init.d/arptables.new > etc/rc.d/init.d/arptables.new.incoming + mv etc/rc.d/init.d/arptables.new.incoming etc/rc.d/init.d/arptables.new fi -config etc/rc.d/init.d/$PRGNAM.new +config etc/rc.d/init.d/arptables.new # Make sure we have the sysv-style configs if [ ! -e etc/sysconfig/network ]; then touch etc/sysconfig/network fi -if [ ! -e etc/sysconfig/$PRGNAM ]; then - touch etc/sysconfig/$PRGNAM +if [ ! -e etc/sysconfig/arptables ]; then + touch etc/sysconfig/arptables fi -- cgit v1.2.3