| … | |
… | |
| 104 | fi |
104 | fi |
| 105 | |
105 | |
| 106 | # Bring up DHCP for this interface (or alias) |
106 | # Bring up DHCP for this interface (or alias) |
| 107 | ebegin "Running dhclient" |
107 | ebegin "Running dhclient" |
| 108 | echo -e "${dhconf}" | start-stop-daemon --start --exec /sbin/dhclient \ |
108 | echo -e "${dhconf}" | start-stop-daemon --start --exec /sbin/dhclient \ |
| 109 | --pidfile "${pidfile}" -- ${opts} -q -1 -pf "${pidfile}" |
109 | --pidfile "${pidfile}" -- ${opts} -q -1 -pf "${pidfile}" "${iface}" |
| 110 | eend $? || return 1 |
110 | eend $? || return 1 |
| 111 | |
111 | |
| 112 | # DHCP succeeded, show address retrieved |
112 | # DHCP succeeded, show address retrieved |
| 113 | local addr=$(interface_get_address "${iface}") |
113 | local addr=$(interface_get_address "${iface}") |
| 114 | einfo "${iface} received address ${addr}" |
114 | einfo "${iface} received address ${addr}" |