startup: try to dhcp on boot

This commit is contained in:
K Lange 2021-06-07 21:59:59 +09:00
parent 0f837c312e
commit 6842a57955
1 changed files with 6 additions and 0 deletions

6
base/etc/startup.d/40_dhcp.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if kcmdline -q no-startup-dhcp then exit 0
echo -n "Setting up network..." >> /dev/pex/splash
/bin/dhclient