diff options
author | Arturo Borrero Gonzalez <arturo@netfilter.org> | 2018-05-03 11:28:31 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-05 11:36:06 +0200 |
commit | 988d6a4cd1b12718177bf3065f07faeabb208713 (patch) | |
tree | c7572eb51f2617031ef88ed4d04dc6a9f6a99c17 /arptables.sysv | |
parent | f4ab8f63f11a72f14687a6646d04ae1bae3fa45f (diff) |
arptables: cleanup sysvinit script
This file belong to downstream distributions. Also, it's unmaintained.
Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Diffstat (limited to 'arptables.sysv')
-rw-r--r-- | arptables.sysv | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/arptables.sysv b/arptables.sysv deleted file mode 100644 index ea5cf09..0000000 --- a/arptables.sysv +++ /dev/null @@ -1,103 +0,0 @@ -#!/bin/bash -# -# init script for arptables -# -# Original by Dag Wieers <dag@wieers.com>. -# Modified/changed to arptables by -# Rok Papez <rok.papez@arnes.si>. -# -# chkconfig: - 16 84 -# description: Arp filtering tables -# -# config: __SYSCONFIG__/arptables - -source /etc/init.d/functions -source /etc/sysconfig/network - -# Check that networking is up. -[ ${NETWORKING} = "no" ] && exit 0 - -[ -x __EXEC_PATH__/arptables ] || exit 1 -[ -x __EXEC_PATH__/arptables-save ] || exit 1 -[ -x __EXEC_PATH__/arptables-restore ] || exit 1 - -[ "$1" != "save" -o -r __SYSCONFIG__/arptables ] || exit 1 - -RETVAL=0 -prog="arptables" -desc="Arp filtering" - -start() { - echo -n $"Starting $desc ($prog): " - __EXEC_PATH__/arptables-restore < __SYSCONFIG__/arptables || RETVAL=1 - - if [ $RETVAL -eq 0 ]; then - success "$prog startup" - rm -f /var/lock/subsys/$prog - else - failure "$prog startup" - fi - - echo - return $RETVAL -} - -stop() { - echo -n $"Stopping $desc ($prog): " - __EXEC_PATH__/arptables-restore < /dev/null || RETVAL=1 - - if [ $RETVAL -eq 0 ]; then - success "$prog shutdown" - rm -f %{_localstatedir}/lock/subsys/$prog - else - failure "$prog shutdown" - fi - - echo - return $RETVAL -} - -restart() { - stop - start -} - -save() { - echo -n $"Saving $desc ($prog): " - __EXEC_PATH__/arptables-save > __SYSCONFIG__/arptables || RETVAL=1 - - if [ $RETVAL -eq 0 ]; then - success "$prog saved" - else - failure "$prog saved" - fi - echo -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart|reload) - restart - ;; - condrestart) - [ -e /var/lock/subsys/$prog ] && restart - RETVAL=$? - ;; - save) - save - ;; - status) - __EXEC_PATH__/arptables-save - RETVAL=$? - ;; - *) - echo $"Usage $0 {start|stop|restart|condrestart|save|status}" - RETVAL=1 -esac - -exit $RETVAL |