mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 23:14:31 +04:00
12 lines
258 B
Bash
Executable File
12 lines
258 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ZONE=`uci get ocserv.config.zone`
|
|
|
|
if [ "$REASON" = "connect" ];then
|
|
env -i ACTION=ifup INTERFACE="$ZONE" DEVICE=$DEVICE /sbin/hotplug-call "iface"
|
|
else
|
|
env -i ACTION=ifdown INTERFACE="$ZONE" DEVICE=$DEVICE /sbin/hotplug-call "iface"
|
|
fi
|
|
|
|
exit 0
|