Fix a couple of bugs in IP, IPSET and TC implementation

This commit is contained in:
Tom Eastep 2009-04-18 11:44:57 -07:00
parent f53a2f87c6
commit 1ea8beb47a
2 changed files with 3 additions and 3 deletions

View File

@ -358,7 +358,7 @@ sub initialize( $ ) {
IPTABLES => undef, IPTABLES => undef,
IP => undef, IP => undef,
TC => undef, TC => undef,
IPSEC => undef, IPSET => undef,
# #
#PATH is inherited #PATH is inherited
# #

View File

@ -242,9 +242,9 @@ get_config() {
fi fi
;; ;;
*) *)
prog="$(mywhich $IP 2> /dev/null)" prog="$(mywhich $TC 2> /dev/null)"
if [ -z "$prog" ] ; then if [ -z "$prog" ] ; then
echo " ERROR: Can't find $IP executable" >&2 echo " ERROR: Can't find $TC executable" >&2
exit 2 exit 2
fi fi
TC=$prog TC=$prog