2020-04-22 00:21:12 +00:00
|
|
|
[Unit]
|
|
|
|
Description=IIAB ap0 clone wifi device
|
|
|
|
Wants=network-pre.target
|
|
|
|
After=network-pre.target
|
|
|
|
Before=dhcpcd.service
|
|
|
|
Before=wpa_supplicant.service
|
|
|
|
Before=wpa_supplicant@{{ discovered_wireless_iface }}.service
|
|
|
|
Before=network-manager.service
|
|
|
|
Before=netplan-wpa@{{ discovered_wireless_iface }}.service
|
|
|
|
Before=hostapd.service
|
|
|
|
|
|
|
|
[Service]
|
2020-04-22 19:57:04 +00:00
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2020-04-22 00:21:12 +00:00
|
|
|
ExecStartPre=-/sbin/iw phy phy0 interface add ap0 type __ap
|
|
|
|
ExecStartPre=-/sbin/ip link set ap0 address {{ ap0_mac_addr }}
|
|
|
|
ExecStart=-/sbin/ip link set ap0 up
|
2020-04-27 16:10:37 +00:00
|
|
|
ExecStop=-/sbin/iw dev ap0 del
|
2020-04-22 00:21:12 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|