1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-27 20:18:58 +02:00
openwrt-xburst/package/network/ipv6/ipv6-support/files/ipv6.hotplug
cyrus 5789fd018b ipv6-support: Add new IPv6-support meta-package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34422 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-29 20:14:28 +00:00

19 lines
433 B
Bash

#!/bin/sh
# Copyright (c) 2012 OpenWrt.org
[ "$DEVICE" == "lo" ] && exit 0
. /lib/ipv6/support.sh
local mode
config_get mode "$INTERFACE" mode
case "$ACTION" in
ifup)
[ "$mode" != "downstream" ] && enable_static $INTERFACE $DEVICE
[ "$mode" == "upstream" ] && enable_upstream $INTERFACE $DEVICE
[ "$mode" == "downstream" ] && enable_downstream $INTERFACE $DEVICE
;;
ifdown)
disable_interface $INTERFACE $DEVICE
;;
esac