Skip to content

Commit e3fc64a

Browse files
Fix dhcp.sh script to not block or exit non 0:
Blocking means the Linuxkit "services" won't come up. We always want the getty service to come up. Without it troubleshooting is difficult. Also, updated the location of the static network interfaces file check. Signed-off-by: Jacob Weinstock <[email protected]>
1 parent 9e2ae90 commit e3fc64a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/dhcp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ run_dhcp_client() {
3030

3131
}
3232

33-
if [ -f /run/network/interfaces ]; then
34-
echo "the /run/network/interfaces file exists, so static IP's are in use. we will not be running the dhcp client."
33+
if [ -f /run/network/interfaces ] || [ -f /var/run/network/interfaces ]; then
34+
echo "the /run/network/interfaces file or /var/run/network/interfaces file exists, so static IP's are in use. not running the dhcp client."
3535
exit 0
3636
fi
3737

0 commit comments

Comments
 (0)