]> code.delx.au - monosys/blob - hacks/fix-openwrt-hairpin
fix-openwrt-hairpin: run on openwrt AP itself
[monosys] / hacks / fix-openwrt-hairpin
1 #!/bin/bash
2
3 # /etc/crontabs/root
4 # m h dom mon dow command
5 # * * * * * /root/fix-openwrt-hairpin
6
7 for f in /sys/devices/virtual/net/*/*wlan*/brport/hairpin_mode; do
8 if [ -f $f ]; then
9 echo 1 > "$f"
10 fi
11 done