| 1 | [Unit] |
| 2 | Description=Automatic wireless network connection using netctl profiles |
| 3 | Documentation=man:netctl.special(7) |
| 4 | Requisite=multi-user.target |
| 5 | BindsTo=sys-subsystem-net-devices-%i.device |
| 6 | After=sys-subsystem-net-devices-%i.device network-pre.target |
| 7 | Before=network.target |
| 8 | Wants=network.target |
| 9 | |
| 10 | [Service] |
| 11 | Type=forking |
| 12 | RemainAfterExit=yes |
| 13 | ExecStart=/usr/bin/netctl-auto start %I |
| 14 | ExecStop=/usr/bin/netctl-auto stop %I |
| 15 | ExecStopPost=/usr/bin/netctl-auto clean %I |
| 16 | |
| 17 | [Install] |
| 18 | WantedBy=sys-subsystem-net-devices-%i.device |