Commit a62cdfa6 authored by Michael Shigorin's avatar Michael Shigorin

50-etcnet-dhcp: moved from dev to live feature

If there's an ethernet interface, a DHCP client, and these can result in connectivity out-of-box, then it's rather a feature for almost any LiveCD. Thus the configuration script is moved from dev feature to live one with the addition of dhcpcd/dhclient test. This is asking for some more neat solution though...
parent 045ae269
#!/bin/sh -efu
# attempt to autoconfigure ethernet
[ -x /sbin/dhcpcd -o -x /sbin/dhclient ] || {
echo "NOT configuring DHCP for eth0" >&2
exit 0
}
echo "configuring DHCP for eth0" >&2
mkdir -p /etc/net/ifaces/eth0 && {
echo TYPE=eth
echo BOOTPROTO=dhcp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment