]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Merge remote-tracking branch 'stevee/hostapd'
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2011 20:41:18 +0000 (22:41 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2011 20:41:18 +0000 (22:41 +0200)
pkgs/hostapd/hostapd.nm
pkgs/hostapd/systemd/hostapd@.service [new file with mode: 0644]

index 1188bfaa5078a5d720b64dc1818eee45a3c16675..fdcd24817aff055276cf282175c824034abbbe27 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 PKG_NAME       = hostapd
 PKG_VER        = 0.6.9
-PKG_REL        = 0
+PKG_REL        = 1
 
 PKG_MAINTAINER =
 PKG_GROUPS     = Networking/Tools
diff --git a/pkgs/hostapd/systemd/hostapd@.service b/pkgs/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