No Description

ocserv-script 258B

1234567891011
  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