changed if clause in wirelessctrl if key is not existing eq on
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1228
ea5c0bd1-69bd-2848-81d8-
4f18e57aeed8
#!/bin/bash
. /opt/pakfire/lib/functions.sh
#!/bin/bash
. /opt/pakfire/lib/functions.sh
+/usr/local/bin/backupctrl exclude >/dev/null 2>&1
-echo "DROPWIRELESSFORWARD=on" >> /var/ipfire/optionsfw/settings
-echo "DROPWIRELESSINPUT=on" >> /var/ipfire/optionsfw/settings
-/usr/local/bin/backupctrl exclude >/dev/null 2>&1
#!/bin/bash
. /opt/pakfire/lib/functions.sh
#!/bin/bash
. /opt/pakfire/lib/functions.sh
+/usr/local/bin/backupctrl exclude >/dev/null 2>&1
-/usr/local/bin/backupctrl exclude >/dev/null 2>&1
}
/* with this rule you can disable the logging of the dropped wireless input packets*/
}
/* with this rule you can disable the logging of the dropped wireless input packets*/
- if(findkey(kv, "DROPWIRELESSINPUT", buffer) && !strcmp(buffer,"on")){
+ if(!findkey(kv, "DROPWIRELESSINPUT", buffer) || strcmp(buffer,"off")){
snprintf(command, STRING_SIZE-1, "/sbin/iptables -A WIRELESSINPUT -i %s -j LOG --log-prefix 'DROP_Wirelessinput'", blue_dev);
safe_system(command);
}
/* with this rule you can disable the logging of the dropped wireless forward packets*/
snprintf(command, STRING_SIZE-1, "/sbin/iptables -A WIRELESSINPUT -i %s -j LOG --log-prefix 'DROP_Wirelessinput'", blue_dev);
safe_system(command);
}
/* with this rule you can disable the logging of the dropped wireless forward packets*/
- if(findkey(kv, "DROPWIRELESSFORWARD", buffer) && !strcmp(buffer,"on")){
+ if(!findkey(kv, "DROPWIRELESSFORWARD", buffer) || strcmp(buffer,"off")){
snprintf(command, STRING_SIZE-1, "/sbin/iptables -A WIRELESSFORWARD -i %s -j LOG --log-prefix 'DROP_Wirelessforward'", blue_dev);
safe_system(command);
}
snprintf(command, STRING_SIZE-1, "/sbin/iptables -A WIRELESSFORWARD -i %s -j LOG --log-prefix 'DROP_Wirelessforward'", blue_dev);
safe_system(command);
}