dont init dhclient if we already got IP address during boot
parent
d57b4ca243
commit
ce19462ccd
|
|
@ -7,7 +7,7 @@ Before=network.target shutdown.target network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
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
|
PIDFile=/run/dhclient.pid
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue