fcgi: moved to github
[openwrt.org/packages.git] / ipv6 / wide-dhcpv6 / files / dhcp6s.hotplug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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

comments