mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
Added ocserv
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user