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|STOP) 20 setprop dhcp.${interface}.result "failed" 21 ;; 22 23RELEASE) 24 setprop dhcp.${interface}.result "released" 25 ;; 26esac 27