1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-12 01:38:28 +02:00
openwrt-xburst/package/network/ipv6/ipv6-support/files/ipv6.hotplug
cyrus 6cc3afb23e ipv6-support: Second Iteration
* mode 'downstream' renamed to 'router'
* mode 'upstream' renamed to 'dhcpv6'
* mode 'relay' added
* cleanups and minor bugfixes in state handling

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34466 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-03 09:18:53 +00:00

14 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