Add vpnc-scripts package with up-to-date script
This removes the hard-coded masquerading configuration from vpnc-script. It's possible to do it in a hook now, but it also shouldn't be necessary, because we should be invoking the hotplug scripts to plumb the interface properly anyway. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@31558 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
7
net/vpnc-scripts/files/etc/vpnc/connect.d/ifstate
Normal file
7
net/vpnc-scripts/files/etc/vpnc/connect.d/ifstate
Normal file
@ -0,0 +1,7 @@
|
||||
if [ -r /etc/openwrt_release ] && [ -n "$OPENWRT_INTERFACE" ]; then
|
||||
uci_set_state network "$OPENWRT_INTERFACE" banner "$CISCO_BANNER"
|
||||
uci_set_state network "$OPENWRT_INTERFACE" ifname "$TUNDEV"
|
||||
[ -n "$INTERNAL_IP4_ADDRESS" ] && uci_set_state network "$OPENWRT_INTERFACE" ipaddr "$INTERNAL_IP4_ADDRESS"
|
||||
[ -n "$INTERNAL_IP6_NETMASK" ] && uci_set_state network "$OPENWRT_INTERFACE" ip6addr "$INTERNAL_IP6_NETMASK"
|
||||
env -i ACTION="ifup" INTERFACE="$OPENWRT_INTERFACE" DEVICE="$TUNDEV" PROTO=openconnect /sbin/hotplug-call "iface"
|
||||
fi
|
Reference in New Issue
Block a user