]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - hostapd/systemd/hostapd@.service
Move all packages to root.
[people/amarx/ipfire-3.x.git] / hostapd / systemd / hostapd@.service
diff --git a/hostapd/systemd/hostapd@.service b/hostapd/systemd/hostapd@.service
new file mode 100644 (file)
index 0000000..2cff6d9
--- /dev/null
@@ -0,0 +1,18 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=WLAN AP on %I
+BindTo=dev-%I.device
+After=dev-%I.device network.service
+Requires=network.service
+
+[Service]
+ExecStart=/usr/bin/hostapd -dd -P /run/network/hostapd/%I/pid /run/network/hostapd/%I/config
+#Restart=always
+UtmpIdentifier=%I
+KillMode=process