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