X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_sbin%2Fgrml-iptstate;h=6dad6c2e58293f754485e155ca08a1584d5374d1;hp=0398cfaf59219b29dd41f5702bf275ef3f441320;hb=cb015ef1617ac6b6bd171ab08140b11cec9293a4;hpb=b42f83d9c02a4dc3e1d950625b442a98283d25b7 diff --git a/usr_sbin/grml-iptstate b/usr_sbin/grml-iptstate index 0398cfa..6dad6c2 100755 --- a/usr_sbin/grml-iptstate +++ b/usr_sbin/grml-iptstate @@ -4,10 +4,11 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Okt 12 17:20:59 CEST 2006 [mika] ################################################################################ +# shellcheck disable=SC1091 . /etc/grml/script-functions +# shellcheck disable=SC1091 . /etc/grml/lsb-functions check4progs iptstate || exit 1 @@ -19,8 +20,9 @@ else ewarn "Module ip_conntrack is not present. Can not start iptstate therefore." eindent einfon "Do you want to load it and invoke iptstate afterwards? [YES|no] " - read a - if [ "$a" = YES -o "$a" = yes -o "$a" = '' -o "$a" = y -o "$a" = Y ] ; then + read -r a + a=$(echo "$a" | tr '[:upper:]' '[:lower:]') + if [ "$a" = "yes" ] || [ "$a" = "y" ] || [ "$a" = "" ] ; then modprobe ip_conntrack ; RC=$? eend $RC [ "$RC" = 0 ] && exec iptstate