Run dhcpcd on all devices

As we did with initscripts, run dhcpcd on all devices and not just eth0.

Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Pierre Schmitz 2012-10-05 11:32:28 +02:00
parent d2e69f4a4a
commit 41def4c27d
3 changed files with 14 additions and 7 deletions

View File

@ -194,7 +194,7 @@ make_customize_root_image() {
-r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \
run
mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
-r 'systemctl -f enable multi-user.target haveged.service pacman-init.service autologin@.service dhcpcd@.service || true' \
-r 'systemctl -f enable multi-user.target haveged.service pacman-init.service autologin@.service dhcpcd.service || true' \
run
: > ${work_dir}/build.${FUNCNAME}
fi

View File

@ -1,6 +0,0 @@
#
# Arguments to be passed to the DHCP client daemon
#
DHCPCD_ARGS="-qb"

View File

@ -0,0 +1,13 @@
[Unit]
Description=dhcpcd on all interfaces
Wants=network.target
Before=network.target
[Service]
Type=forking
PIDFile=/run/dhcpcd.pid
ExecStart=/sbin/dhcpcd -A -b -q
ExecStop=/sbin/dhcpcd -k
[Install]
WantedBy=multi-user.target