View | Details | Raw Unified | Return to bug 19190
Collapse All | Expand All

(-)a/etc/net/scripts/openvpn.action (-2 / +5 lines)
Lines 8-19 Link Here
8
# cmd tun_dev tun_mtu link_mtu ifconfig_local_ip ifconfig_remote_ip [ init | restart ]
8
# cmd tun_dev tun_mtu link_mtu ifconfig_local_ip ifconfig_remote_ip [ init | restart ]
9
# For --dev tap execute as:
9
# For --dev tap execute as:
10
# cmd tap_dev tap_mtu link_mtu ifconfig_local_ip ifconfig_netmask [ init | restart ]
10
# cmd tap_dev tap_mtu link_mtu ifconfig_local_ip ifconfig_netmask [ init | restart ]
11
# For --dev-type tap with server configured without "pull" execute as: 
12
# cmd tap_dev tap_mtu link_mtu  [ init | restart ]
11
13
12
if [ $# -lt 6 ] ; then
14
15
if [ $# -ne 6 ] && [ $# -ne 4 ] ; then
13
	logger -d "Wrong arguments to $0: '$@'"
16
	logger -d "Wrong arguments to $0: '$@'"
14
	exit 1
17
	exit 1
15
fi
18
fi
16
19
17
[ "$6" = "init" ] && exec /etc/net/scripts/ifup-openvpn $1
20
[ "$6" = "init" ] || [ "$4" = "init" ] && exec /etc/net/scripts/ifup-openvpn $1
18
21
19
exit 0
22
exit 0

Return to bug 19190