grml-router: fix usage of iptables by dropping full path usage
authorMichael Prokop <mika@grml.org>
Tue, 7 Jun 2016 14:24:59 +0000 (16:24 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 7 Jun 2016 14:24:59 +0000 (16:24 +0200)
check4progs expects a program with its full path, otherwise
it fails with:

| /sbin/iptables: binary not found

Thanks: Ralf Moll for the bugreport

sbin/grml-router

index cd1e19d..52d82c3 100755 (executable)
@@ -21,7 +21,7 @@ fi
 
 # defaults if unconfigured
 [ -n "$OUTDEV" ]   || OUTDEV=auto
-[ -n "$IPTABLES" ] || IPTABLES=/sbin/iptables
+[ -n "$IPTABLES" ] || IPTABLES=iptables
 
 case "$OUTDEV" in
   auto|default)