uzbek-plus/b8/b8f/rootfs/etc/init.d/aurora-wifi
q dddc11e57b B8: Wi-Fi (WCNSS/Pronto + wcn36xx + hostapd test AP) and persistent B8F cache
B8A audit, B8B Pronto remoteproc (fixed wcnss_mem 0x8b600000), B8C stock NV
(fixes Pronto startup watchdog), B8D cfg80211/mac80211/wcn36xx -> phy0/wlan0,
B8E wlan0 up + WPA2/CCMP test AP, B8F eMMC cache 857c9c30 with aurora-wifi
autostart: 3/3 class-A cold boots, AP up 76-94 s after power-on, LTE unaffected.
PSK, NV and PSK-bearing images are not published.
2026-10-02 22:55:20 +03:00

16 lines
949 B
Bash
Executable file

#!/bin/sh
# Aurora Wi-Fi service (B8F). Started once by /init after the modem service; no OpenRC.
# /etc/init.d/aurora-wifi start | stop | status — kernel cmdline 'aurora.wifi=off' disables autostart.
C=/usr/sbin/aurora-wifi; D=/run/aurora-wifi; P=$D/service.pid; L=$D/service.log
mkdir -p $D
running() { [ -f $P ] && kill -0 $(cat $P) 2>/dev/null; }
case "$1" in
start)
grep -qw aurora.wifi=off /proc/cmdline && { echo "aurora-wifi: disabled by cmdline"; exit 0; }
running && { echo "aurora-wifi: start already in progress (pid $(cat $P))"; exit 0; }
( $C start >> $L 2>&1; echo "=== service start rc=$? $(cut -d' ' -f1 /proc/uptime)" >> $L ) &
echo $! > $P; echo "aurora-wifi: starting (pid $!, log $L)";;
stop) running && kill -TERM $(cat $P) 2>/dev/null; rm -f $P; $C stop;;
status) running && echo "service: start in progress (pid $(cat $P))" || echo "service: idle"; $C status;;
*) echo "usage: $0 start|stop|status"; exit 2;;
esac