Skip to content

Commit

Permalink
Merge pull request #369 from nodogsplash/fix-initscript
Browse files Browse the repository at this point in the history
openwrt: initscript: add missing macmechanism in the config file
  • Loading branch information
mwarning committed Jun 14, 2019
2 parents 905eeba + 67b314d commit cdf6e1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openwrt/nodogsplash/files/etc/init.d/nodogsplash
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ setup_mac_lists() {
fi
elif [ "$val" = "allow" ]; then
config_list_foreach "$cfg" allowedmac append_mac
addline "MACmechanism allow"
addline "AllowedMACList $macs"
elif [ "$val" = "block" ]; then
config_list_foreach "$cfg" blockedmac append_mac
addline "MACmechanism block"
addline "BlockedMACList $macs"
else
echo "Invalid macmechanism '$val' - allow or block are valid." >&2
Expand Down

0 comments on commit cdf6e1c

Please sign in to comment.