developer | faf1ea2 | 2022-04-29 17:53:25 +0800 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=Hostapd IEEE 802.11n AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator |
| 3 | After=CcspPandMSsp.service |
| 4 | StartLimitIntervalSec=120 |
| 5 | |
| 6 | [Service] |
| 7 | Type=forking |
| 8 | ExecStartPre=/bin/sh -c '(/lib/rdk/hostapd-init.sh)' |
| 9 | PIDFile=/var/run/hostapd-global.pid |
| 10 | ExecStart=/usr/sbin/hostapd -g /var/run/hostapd/global -B -P /var/run/hostapd-global.pid |
| 11 | ExecStartPost=hostapd_cli -i global raw ADD bss_config=phy0:/nvram/hostapd0.conf |
| 12 | ExecStartPost=hostapd_cli -i global raw ADD bss_config=phy1:/nvram/hostapd1.conf |
| 13 | Restart=always |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=multi-user.target |
| 17 | |