4b222b8263
Dependency to start network-pre (which depends on network.target) before dhcp-interface@.service collides with Ubuntu's own network.target that suupose to start after network-pre. Change-Id: I9e59c970bfb1ebdaa15b4ec6b545761ede3ca056 Closes-bug: #1619816
17 lines
322 B
Desktop File
17 lines
322 B
Desktop File
[Unit]
|
|
Description=DHCP interface %I
|
|
Before=network-pre.target
|
|
Wants=network-pre.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
|