# HG changeset patch # User Pascal Bellard # Date 1262864420 -3600 # Node ID 8e4da8903b1c6bb14a1c886ff8f19cb233ece670 # Parent 23fde46c86798baee146defb06a3bae132b5526d knock/knockd-helper: add help diff -r 23fde46c8679 -r 8e4da8903b1c knock/stuff/usr/sbin/knockd-helper --- a/knock/stuff/usr/sbin/knockd-helper Thu Jan 07 12:10:30 2010 +0100 +++ b/knock/stuff/usr/sbin/knockd-helper Thu Jan 07 12:40:20 2010 +0100 @@ -23,7 +23,7 @@ iptables -t nat -I PREROUTING -s $IP -p $PROT --dport $PORT -j RETURN iptables -I INPUT -s $IP -p $PROT --dport $PORT -j ACCEPT shift 3 - logger "Ensable $PROT:$PORT for $IP $@" + logger "Enable $PROT:$PORT for $IP $@" ;; off) [ -f /var/lib/knockd/$IP ] && disable /var/lib/knockd/$IP @@ -59,4 +59,29 @@ /etc/init.d/crond start } ;; +*) + PROG=$(basename $0) + cat <