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