diff options
author | Menno E. Duursma <druiloor@zonnet.nl> | 2010-05-13 00:35:38 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:35:38 +0200 |
commit | 5dee08e1714facb00a6bb16d41a1c9450ded9953 (patch) | |
tree | ad5fcde7de8f9d02e8723db35c913e35929fcc75 /network/arptables/doinst.sh | |
parent | 516db23a7e5cef1de99baf052990b1e98520949d (diff) | |
download | slackbuilds-5dee08e1714facb00a6bb16d41a1c9450ded9953.tar.gz |
network/arptables: Updated for version 0.0.3
Diffstat (limited to 'network/arptables/doinst.sh')
-rw-r--r-- | network/arptables/doinst.sh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/network/arptables/doinst.sh b/network/arptables/doinst.sh index e2d05cefb5..e2658e2fe1 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 |