Gitiles
Code Review
Sign In
git01.mediatek.com
/
openwrt
/
feeds
/
mtk-openwrt-feeds
/
0289a910bab09669c36b0f4b34bd25af0f4b740c
/
.
/
21.02
/
files
/
target
/
linux
/
mediatek
/
mt7981
/
base-files
/
etc
/
hotplug.d
/
iface
/
98-mtk-vpn
blob: 75812b210c1e137d9adf9304b256d55be721fc10 [
file
] [
log
] [
blame
]
#!/bin/sh
proto
=
`uci -q get network.$INTERFACE.proto`
if
[
"$proto"
=
pptp
];
then
if
[
"$ACTION"
=
ifup
];
then
echo
0
>
/
sys
/
kernel
/
debug
/
hnat
/
hook_toggle
elif
[
"$ACTION"
=
ifdown
];
then
echo
1
>
/
sys
/
kernel
/
debug
/
hnat
/
hook_toggle
fi
fi