2 # Filename: grml-iptstate
3 # Purpose: wrapper around iptstate (top-like display of IP Tables state table entries)
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 # Latest change: Don Okt 12 17:20:59 CEST 2006 [mika]
8 ################################################################################
10 . /etc/grml/script-functions
11 . /etc/grml/lsb-functions
12 check4progs iptstate || exit 1
14 if grep -q '_conntrack' /proc/modules ; then
17 einfo "iptstate is a top-like display of IP Tables state table entries."
19 ewarn "Module ip_conntrack is not present. Can not start iptstate therefore."
21 einfon "Do you want to load it and invoke iptstate afterwards? [YES|no] "
23 if [ "$a" = YES -o "$a" = yes -o "$a" = '' -o "$a" = y -o "$a" = Y ] ; then
24 modprobe ip_conntrack ; RC=$?
26 [ "$RC" = 0 ] && exec iptstate
28 echo "Aborting as requested."
33 ## END OF FILE #################################################################