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: 6 setprop dhcp.${interface}.reason "${reason}" 7 8 case "${reason}" in 9 BOUND|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 19 EXPIRE|FAIL|IPV4LL|STOP) 20 setprop dhcp.${interface}.result "failed" 21 ;; 22 23 RELEASE) 24 setprop dhcp.${interface}.result "released" 25 ;; 26 esac 27