From 34dadc6ea6f26268b71661195744250c4cbd2ce1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sun, 5 Jul 2009 17:31:54 +0000 Subject: [PATCH] - drop obsolete files Changed files: ipset.init -> 1.4 --- ipset.init | 71 ------------------------------------------------------ 1 file changed, 71 deletions(-) delete mode 100644 ipset.init diff --git a/ipset.init b/ipset.init deleted file mode 100644 index 2fe2342..0000000 --- a/ipset.init +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh - -# chkconfig: 2345 07 93 -# description: Automates administration of IP sets. -# config: /etc/sysconfig/ipset - -IPSET_CONFIG=/etc/sysconfig/ipset -if [ ! -f $IPSET_CONFIG ]; then - case "$1" in - start|restart|force-reload) - exit 0 - ;; - esac -fi - -. /etc/rc.d/init.d/functions - -start() { - if [ -f $IPSET_CONFIG ]; then - show "Applying ipset rules" - /usr/sbin/ipset -X - /usr/sbin/ipset -R < $IPSET_CONFIG - RETVAL=$? - if [ $RETVAL = 0 ]; then - ok - else - fail - fi - touch /var/lock/subsys/ipset - fi -} - -stop() { - show "Resetting ipset rules" - /usr/sbin/ipset -X && ok || fail - rm -f /var/lock/subsys/ipset -} - -RETVAL=0 -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart|force-reload) - start - ;; - status) - /usr/sbin/ipset -L --sorted --numeric - exit $? - ;; - save) - show "Saving current rules to %s" $IPSET_CONFIG - touch $IPSET_CONFIG - chmod 600 $IPSET_CONFIG - /usr/sbin/ipset -S > $IPSET_CONFIG - RETVAL=$? - if [ $RETVAL = 0 ]; then - ok - else - fail - fi - ;; - *) - msg_usage "$0 {start|stop|restart|force-reload|status|save}" - exit 3 -esac - -exit $RETVAL -- 2.44.0