Gitiles
Code Review
Sign In
git01.mediatek.com
/
openwrt
/
feeds
/
mtk-openwrt-feeds
/
a58add6657136cba85f1cd64d7ad4b60c459503c
/
.
/
target
/
linux
/
mediatek
/
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