2014-03-19 18:33:14 +00:00
|
|
|
[Unit]
|
2016-12-12 21:46:25 +00:00
|
|
|
Description=DHCP interface %i
|
2017-01-04 16:49:59 +00:00
|
|
|
# We want to run after network.target so it doesn't try to bring
|
|
|
|
# up the interfaces a second time, but network-online should not
|
|
|
|
# be reached until after we've brought up the interfaces.
|
|
|
|
After=network.target
|
|
|
|
Before=network-online.target
|
|
|
|
Wants=network-online.target
|
2014-03-19 18:33:14 +00:00
|
|
|
|
2016-12-12 21:46:25 +00:00
|
|
|
ConditionPathExists=!/etc/sysconfig/network-scripts/ifcfg-%i
|
2014-03-19 18:33:14 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
User=root
|
2016-12-12 21:46:25 +00:00
|
|
|
ExecStartPre=/usr/local/sbin/dhcp-all-interfaces.sh %i
|
|
|
|
ExecStart=/sbin/ifup %i
|
2014-03-19 18:33:14 +00:00
|
|
|
RemainAfterExit=true
|
2017-01-04 17:21:03 +00:00
|
|
|
TimeoutStartSec=DIB_DHCP_TIMEOUT
|
2014-03-19 18:33:14 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|