95-configured revision e95877ecfa1170d77b1ec1f66752725cdda01b64
1# This script runs last, after all network configuration
2# has completed. It sets a property to let the framework
3# know that setting up the interface is complete.
4
5# For debugging:
6setprop dhcp.${interface}.reason "${reason}"
7
8case "${reason}" in
9BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT)
10    setprop dhcp.${interface}.ipaddress "${new_ip_address}"
11    setprop dhcp.${interface}.gateway   "${new_routers%% *}"
12    setprop dhcp.${interface}.mask      "${new_subnet_mask}"
13    setprop dhcp.${interface}.leasetime "${new_dhcp_lease_time}"
14    setprop dhcp.${interface}.server    "${new_dhcp_server_identifier}"
15
16    setprop dhcp.${interface}.result "ok"
17    ;;
18
19EXPIRE|FAIL|IPV4LL|RELEASE|STOP)
20    setprop dhcp.${interface}.result "failed"
21    ;;
22esac
23