summaryrefslogtreecommitdiff
path: root/network/arptables/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/arptables/doinst.sh')
-rw-r--r--network/arptables/doinst.sh16
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