From ce19462ccd3b6c5fb46127ca49a65df776cdcc3f Mon Sep 17 00:00:00 2001 From: TomasM Date: Wed, 8 Nov 2017 02:06:05 -0500 Subject: [PATCH] dont init dhclient if we already got IP address during boot --- Slax/debian/rootcopy/lib/systemd/system/dhclient.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Slax/debian/rootcopy/lib/systemd/system/dhclient.service b/Slax/debian/rootcopy/lib/systemd/system/dhclient.service index 963d2bb..cc4be09 100644 --- a/Slax/debian/rootcopy/lib/systemd/system/dhclient.service +++ b/Slax/debian/rootcopy/lib/systemd/system/dhclient.service @@ -7,7 +7,7 @@ Before=network.target shutdown.target network-online.target [Service] Type=forking -ExecStart=-/bin/sh -c 'udevadm settle && /sbin/dhclient -nw' +ExecStart=-/bin/sh -c 'udevadm settle && cat /proc/cmdline | egrep -qvi " ip=| from=http" && dhclient -nw' PIDFile=/run/dhclient.pid [Install]