openvpn: fix arguments passing to wrapped up and down scripts
[openwrt/openwrt.git] / package / network / services / openvpn / files / etc / hotplug.d / openvpn / 01-user
index 86be69e80574497ab46fc80583f5262fbdad3f5e..f93823e5c55559be61352b096995b9a828e45fdd 100644 (file)
@@ -13,7 +13,8 @@
 case "$ACTION" in
        up|down)
                if get_openvpn_option "$config" command "$ACTION"; then
-                       exec /bin/sh -c "$command $ACTION $INSTANCE $*"
+                       shift
+                       exec /bin/sh -c "$command $*"
                fi
        ;;
 esac