developer | 1e0fa25 | 2021-07-08 16:56:12 +0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | proto=`uci -q get network.$INTERFACE.proto` | ||||
4 | |||||
5 | if [ "$proto" = l2tp ] || [ "$proto" = pptp ]; then | ||||
6 | if [ "$ACTION" = ifup ]; then | ||||
7 | echo 0 > /sys/kernel/debug/hnat/hook_toggle | ||||
8 | elif [ "$ACTION" = ifdown ]; then | ||||
9 | echo 1 > /sys/kernel/debug/hnat/hook_toggle | ||||
10 | fi | ||||
11 | fi |