6relayd: Detect changes of default routes for RAs
[openwrt.git] / package / network / ipv6 / ipv6-support / files / ipv6.hotplug
1 #!/bin/sh
2 # Copyright (c) 2012 OpenWrt.org
3 [ "$DEVICE" == "lo" ] && exit 0
4 . /lib/ipv6/support.sh
5
6 case "$ACTION" in
7         ifup)
8                 enable_interface "$INTERFACE" "$DEVICE"
9         ;;
10         ifdown)
11                 disable_interface "$INTERFACE" "$DEVICE"
12         ;;
13 esac