aboutsummaryrefslogtreecommitdiff
path: root/configs/wide-dhcpv6/dhcp6cPD.script
blob: f57f43c6314593cd1ae9a1a300e67932617c5a5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/system/bin/sh

# For debugging:
setprop dhcp.pd.${interface}.reason "${REASON}"

case "${REASON}" in
	REQUEST|CONFIRM|INFOREQ)		
		setprop dhcp.pd.${interface}.result "ok"
		;;
	RENEW|REBIND)
		set_dns_props
		setprop dhcp.pd.${interface}.renewresult "ok"
		;;
	RELEASE)				
		setprop dhcp.pd.${interface}.result "released"
		;;
	*)	
		setprop dhcp.pd.${interface}.result "failed"
		;;
esac