blob: d169567895c03af180532269b90ac3bf4dde7233 [file] [log] [blame]
developer1e0fa252021-07-08 16:56:12 +08001#!/bin/sh
2
3proto=`uci -q get network.$INTERFACE.proto`
4
5if [ "$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
11fi