From b72ffed3cc161eb3af7229a8a2e94c3a9f8f9b16 Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Thu, 8 May 2014 23:16:24 -0700 Subject: [PATCH] bugfix: Correct check for dmz-mode. --- files/etc/hotplug.d/iface/11-meshrouting | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/etc/hotplug.d/iface/11-meshrouting b/files/etc/hotplug.d/iface/11-meshrouting index 9e96012b..ada0976e 100755 --- a/files/etc/hotplug.d/iface/11-meshrouting +++ b/files/etc/hotplug.d/iface/11-meshrouting @@ -51,7 +51,7 @@ is_olsrgw=`cat /etc/config.mesh/_setup|grep -i olsrd_gw|cut -d ' ' -f 3` echo "Setting routing rules." if [ "$INTERFACE" == "wifi" ] || [ "$INTERFACE" == "dtdlink" ]; then - if [ -z /etc/config/dmz-mode ] ; then + if [ -e /etc/config/dmz-mode ] ; then ip rule add pref 20010 iif $DEVICE lookup 29 fi ip rule add pref 20020 iif $DEVICE lookup 30