openwrtv3/package/network/ipv6/ipv6-support/files/ipv6.hotplug

13 lines
231 B
Bash

#!/bin/sh
# Copyright (c) 2012 OpenWrt.org
[ "$DEVICE" == "lo" ] && exit 0
. /lib/ipv6/support.sh
case "$ACTION" in
ifup)
enable_interface "$INTERFACE" "$DEVICE"
;;
ifdown)
disable_interface "$INTERFACE" "$DEVICE"
;;
esac