dont init dhclient if we already got IP address during boot

pull/40/head
TomasM 2017-11-08 02:06:05 -05:00
parent d57b4ca243
commit ce19462ccd
1 changed files with 1 additions and 1 deletions

View File

@ -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]