2017-07-22 14:14:06 +00:00
|
|
|
[Unit]
|
2017-07-23 12:39:48 +00:00
|
|
|
Description=[::SATS::] Dynamic Wireless Credentials (%i)
|
2017-07-25 10:04:50 +00:00
|
|
|
Requires=network-online.target
|
2017-07-22 14:14:06 +00:00
|
|
|
BindsTo=sys-subsystem-net-devices-%i.device
|
2017-07-25 10:04:50 +00:00
|
|
|
After=sys-subsystem-net-devices-%i.device network-online.target
|
2017-07-22 14:14:06 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
|
|
|
|
|
|
|
ExecStart=/bin/echo "[1] Bringing %i up"
|
|
|
|
ExecStart=-/usr/sbin/ip link set dev %i up
|
|
|
|
ExecStart=/bin/echo "[2] Running Dynamic Wireless Configuration"
|
|
|
|
ExecStart=/bin/bash /etc/wpa_supplicant/%i.dwc
|
|
|
|
ExecStart=/bin/echo "[3] Running WPA Supplicant"
|
|
|
|
ExecStart=/sbin/wpa_supplicant -B -Dwext -i%i -c/etc/wpa_supplicant/%i.conf
|
|
|
|
ExecStart=/bin/echo "[4] Running DHCP client"
|
|
|
|
ExecStart=/sbin/dhclient %i
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|