diff options
| author | Alexander Hill <ahill@breadpudding.dev> | 2025-04-23 22:19:12 -0400 |
|---|---|---|
| committer | Alexander Hill <ahill@breadpudding.dev> | 2025-04-23 22:19:12 -0400 |
| commit | ddd2069627612e45cb6f46c1e3b8d2f167330e40 (patch) | |
| tree | 3933bbaf1e41e9ccd27530669abd2b9b91af85bf /build-chroot.sh | |
| parent | ca6e4182bf91ae20d0e10d40778e3e85f1d72855 (diff) | |
Fixed dhcpcd
Diffstat (limited to 'build-chroot.sh')
| -rwxr-xr-x | build-chroot.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build-chroot.sh b/build-chroot.sh index f0683e5..b4e8fa5 100755 --- a/build-chroot.sh +++ b/build-chroot.sh @@ -632,7 +632,10 @@ echo "description=\"DHCP Client Daemon\"" >> /etc/init.d/dhcpcd echo "command=\"/sbin/dhcpcd\"" >> /etc/init.d/dhcpcd echo "command_args=\"-M\"" >> /etc/init.d/dhcpcd echo "command_args_background=\"-b\"" >> /etc/init.d/dhcpcd -echo "pidfile=\"/run/dhcpcd.pid\"" >> /etc/init.d/dhcpcd +# NOTE: dhcpcd forks itself to the background, meaning a custom PID file will +# not function as intended. Instead, use dhcpcd's own /run/dhcpcd/pid to +# tell OpenRC where to find the service. ~ahill +echo "pidfile=\"/run/dhcpcd/pid\"" >> /etc/init.d/dhcpcd chmod +x /etc/init.d/dhcpcd rc-update add dhcpcd default cd .. |
