summaryrefslogtreecommitdiff
path: root/recipes-connectivity/hostapd-example/hostapd-example/enable-wifi.service
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2020-05-15 17:18:55 +0200
committerPhilippe Schenker <philippe.schenker@toradex.com>2020-05-28 18:55:34 +0200
commit7873d287300c204c594bc46429bca066cbd68bea (patch)
treed16db63d6e14a284f03e5247518b377c70f9fa2a /recipes-connectivity/hostapd-example/hostapd-example/enable-wifi.service
parent93533eade29f2379519548361d6f051f0712909d (diff)
recipes-connectivity: add hostapd-example package
This will add an example hostapd package that will contain all necessary files to just "enable" an acces-point on a demo image. Relates-to: ELB-1303 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Diffstat (limited to 'recipes-connectivity/hostapd-example/hostapd-example/enable-wifi.service')
-rw-r--r--recipes-connectivity/hostapd-example/hostapd-example/enable-wifi.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-connectivity/hostapd-example/hostapd-example/enable-wifi.service b/recipes-connectivity/hostapd-example/hostapd-example/enable-wifi.service
new file mode 100644
index 0000000..623c281
--- /dev/null
+++ b/recipes-connectivity/hostapd-example/hostapd-example/enable-wifi.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Enable Wifi
+BindsTo=sys-subsystem-net-devices-uap0.device
+After=sys-subsystem-net-devices-uap0.device
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/connmanctl enable wifi
+ExecStop=
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target