Skip to content

Commit df1be3f

Browse files
committed
conf: r4: add hostapd default file and service files for 2nd and 3rd instance
1 parent 00725fc commit df1be3f

3 files changed

Lines changed: 61 additions & 0 deletions

File tree

conf/bpi-r4/etc/default/hostapd

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Defaults for hostapd initscript
2+
#
3+
# WARNING: The DAEMON_CONF setting has been deprecated and will be removed
4+
# in future package releases.
5+
#
6+
# See /usr/share/doc/hostapd/README.Debian for information about alternative
7+
# methods of managing hostapd.
8+
#
9+
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
10+
# file and hostapd will be started during system boot. An example configuration
11+
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
12+
#
13+
DAEMON_CONF="/etc/hostapd/hostapd_2g4.conf"
14+
DAEMON_CONF2="/etc/hostapd/hostapd_5g.conf"
15+
DAEMON_CONF3="/etc/hostapd/hostapd_6g.conf"
16+
17+
# Additional daemon options to be appended to hostapd command:-
18+
# -d show more debug messages (-dd for even more)
19+
# -K include key data in debug messages
20+
# -t include timestamps in some debug messages
21+
#
22+
# Note that -B (daemon mode) and -P (pidfile) options are automatically
23+
# configured by the init.d script and must not be added to DAEMON_OPTS.
24+
#
25+
#DAEMON_OPTS=""
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[Unit]
2+
Description=Access point and authentication server for Wi-Fi 5G and Ethernet
3+
Documentation=man:hostapd(8)
4+
After=network.target
5+
6+
[Service]
7+
Type=forking
8+
PIDFile=/run/hostapd2.pid
9+
Restart=on-failure
10+
RestartSec=2
11+
Environment=DAEMON_CONF=/etc/hostapd/hostapd.conf
12+
EnvironmentFile=-/etc/default/hostapd
13+
ExecStart=/usr/sbin/hostapd -B -P /run/hostapd2.pid $DAEMON2_OPTS ${DAEMON_CONF2}
14+
StandardOutput=append:/var/log/hostapd2.log
15+
StandardError=append:/var/log/hostapd2_error.log
16+
17+
[Install]
18+
WantedBy=multi-user.target
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[Unit]
2+
Description=Access point and authentication server for Wi-Fi 6G and Ethernet
3+
Documentation=man:hostapd(8)
4+
After=network.target
5+
6+
[Service]
7+
Type=forking
8+
PIDFile=/run/hostapd3.pid
9+
Restart=on-failure
10+
RestartSec=2
11+
Environment=DAEMON_CONF=/etc/hostapd/hostapd.conf
12+
EnvironmentFile=-/etc/default/hostapd
13+
ExecStart=/usr/sbin/hostapd -B -P /run/hostapd3.pid $DAEMON3_OPTS ${DAEMON_CONF3}
14+
StandardOutput=append:/var/log/hostapd3.log
15+
StandardError=append:/var/log/hostapd3_error.log
16+
17+
[Install]
18+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)