16 lines
308 B
SYSTEMD
16 lines
308 B
SYSTEMD
|
[Unit]
|
||
|
Description=DHCP interface %I
|
||
|
After=network.service network.target
|
||
|
|
||
|
ConditionPathExists=!/etc/sysconfig/network-scripts/ifcfg-%I
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
User=root
|
||
|
ExecStartPre=/usr/local/sbin/dhcp-all-interfaces.sh %I
|
||
|
ExecStart=/sbin/ifup %I
|
||
|
RemainAfterExit=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|