mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
misc-progs: Cleanup chain creation of wirelessctrl.
This changes the behaviour of the wirelessctrl binary that will no longer create useless rules in the WIRELESSINPUT and WIRELESSFORWARD chains that have no use at all. So we keep this chain empty if /var/ipfire/wireless/nodrop is existant.
This commit is contained in:
@@ -101,11 +101,11 @@ int main(void)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (!(fd = fopen(CONFIG_ROOT "/wireless/nodrop", "r")))
|
||||
{
|
||||
if ((fd = fopen(CONFIG_ROOT "/wireless/nodrop", "r")))
|
||||
return 0;
|
||||
|
||||
/* register exit handler to ensure the block rule is always present */
|
||||
atexit(exithandler);
|
||||
}
|
||||
|
||||
if (!(fd = fopen(CONFIG_ROOT "/wireless/config", "r")))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user