thepeople 85dd0c381b Update wide-dhcpv6 package, from #6820
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20212 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-14 18:16:29 +00:00

21 lines
417 B
Bash

#!/bin/sh
include /lib/network
config_load "dhcp6s"
local enabled
config_get_bool enabled basic enabled 0
[ $enabled -eq 0 ] && return 0
local server_interface
config_get server_interface basic interface
if [ "$INTERFACE" = "$server_interface" ] && [ "$ACTION" = "ifup" ]; then
/etc/init.d/dhcp6s start
fi
if [ "$INTERFACE" = "$server_interface" ] && [ "$ACTION" = "ifdown" ]; then
/etc/init.d/dhcp6s stop
fi