You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
258 B

10 years ago
10 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