You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
367 B
Bash
22 lines
367 B
Bash
#!/bin/sh
|
|
|
|
. /lib/functions/openvpn.sh
|
|
|
|
[ -e "/etc/openvpn.user" ] && {
|
|
env -i ACTION="$ACTION" INSTANCE="$INSTANCE" \
|
|
/bin/sh \
|
|
/etc/openvpn.user \
|
|
$*
|
|
}
|
|
|
|
# Wrap user defined scripts on up/down events
|
|
case "$ACTION" in
|
|
up|down)
|
|
if get_openvpn_option "$config" command "$ACTION"; then
|
|
exec /bin/sh -c "$command $ACTION $INSTANCE $*"
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|