#!/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
|