Created
March 11, 2013 06:42
-
-
Save kfl62/5132267 to your computer and use it in GitHub Desktop.
ArchLinux network.service (dhclient) ipv4, ipv6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Network Connectivity | |
Wants=network.target | |
Before=network.target | |
BindsTo=sys-subsystem-net-devices-lan0.device | |
After=sys-subsystem-net-devices-lan0.device | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/usr/sbin/dhclient lan0 | |
ExecStart=/usr/sbin/dhclient -6 lan0 | |
ExecStop=/usr/sbin/dhclient -6 -r lan0 | |
ExecStop=/usr/sbin/dhclient -r lan0 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment