11 lines
258 B

11 years ago
11 years ago
  1. #!/bin/sh
  2. ZONE=`uci get ocserv.config.zone`
  3. if [ "$REASON" = "connect" ];then
  4. env -i ACTION=ifup INTERFACE="$ZONE" DEVICE=$DEVICE /sbin/hotplug-call "iface"
  5. else
  6. env -i ACTION=ifdown INTERFACE="$ZONE" DEVICE=$DEVICE /sbin/hotplug-call "iface"
  7. fi
  8. exit 0