fix dhcpcd startup on boot

Signed-off-by: Tobias Powalowski <tpowa@archlinux.org>
This commit is contained in:
Tobias Powalowski 2021-09-12 18:12:53 +02:00
parent 6789839272
commit 218cd74609
2 changed files with 7 additions and 1 deletions

View file

@ -11,7 +11,7 @@ build ()
done
apps="dnsdomainname netstat arp ipmaddr iptunnel mii-tool nameif plipconfig rarp \
slattach traceroute arping clockdiff rarpd rdisc tftpd tracepath route \
dig host nslookup telnet ssh arpd genl ifstat lnstat nstat rtacct rtmon ss tc dhclient ifplugd ifplugstatus \
dig host nslookup telnet ssh arpd genl ifstat lnstat nstat rtacct rtmon ss tc dhclient ifplugd ifplugstatus \
ip ping ethtool"
for i in $apps; do
add_binary "$i"
@ -28,6 +28,9 @@ build ()
for i in $(find /usr/lib/dhcpcd -type f); do
add_file "$i"
done
# start dhcpcd on startup
add_symlink "/etc/systemd/system/multi-user.target.wants/dhcpcd.service" "/usr/lib/systemd/system/dhcpcd.service"
add_file "/usr/share/archboot/network/etc/system/dhcpcd@.service.d/no-wait.conf" "/etc/system/dhcpcd@.service.d/no-wait.conf"
add_file "/etc/dhcpcd.conf"
add_dir "/var/lib/dhcpcd"
add_full_dir "/usr/lib/tc"

View file

@ -0,0 +1,3 @@
[Service]
ExecStart=
ExecStart=/usr/bin/dhcpcd -b -q %I