Files
linux-live/Slax/debian/rootcopy/lib/systemd/system/dhclient.service
T
TomasM be70b4cc80 create a flag file in /mnt/live if network is set up by initrd,
make dhclient.service in slax check for this file and skip network reconfig if exists
2017-11-08 06:52:33 -05:00

17 lines
435 B
Desktop File

[Unit]
Description=DHCP Client
Documentation=man:dhclient(8)
Wants=network.target
After=network-pre.target systemd-sysctl.service systemd-modules-load.service
Before=network.target shutdown.target network-online.target
ConditionPathExists=/mnt/live/net.up.flag
[Service]
Type=forking
ExecStart=-/bin/sh -c 'udevadm settle && dhclient -nw'
PIDFile=/run/dhclient.pid
[Install]
WantedBy=multi-user.target
WantedBy=network-online.target