mirror of https://github.com/OpenIPC/firmware.git
wifibroadcast-ng: minor update
parent
5c61f37719
commit
97cfb4d9f9
|
@ -6,7 +6,8 @@ wfb_dev=wlan0
|
|||
wfb_yaml() {
|
||||
if [ -e "$1" ]; then
|
||||
while IFS=": " read -r key value; do
|
||||
[ -n "$value" ] && export "$key=$value"
|
||||
value=$(eval echo $value)
|
||||
export "$key=$value"
|
||||
done < "$1"
|
||||
fi
|
||||
}
|
||||
|
@ -18,6 +19,16 @@ load_config() {
|
|||
if [ ! -e "$wfb_key" ]; then
|
||||
wfb_key=/rom/etc/drone.key
|
||||
fi
|
||||
|
||||
if [ ! -e /etc/system.ok ]; then
|
||||
if [ "$wfb_soc" = "ssc33x" ]; then
|
||||
majestic_sigmastar
|
||||
fi
|
||||
|
||||
touch /etc/system.ok
|
||||
sleep 1
|
||||
killall -1 majestic
|
||||
fi
|
||||
}
|
||||
|
||||
load_modules() {
|
||||
|
@ -125,15 +136,6 @@ start() {
|
|||
start_broadcast
|
||||
start_tunnel
|
||||
start_telemetry
|
||||
|
||||
if [ ! -e /etc/system.ok ]; then
|
||||
if [ "$wfb_soc" = "ssc33x" ]; then
|
||||
majestic_sigmastar
|
||||
fi
|
||||
|
||||
touch /etc/system.ok
|
||||
killall -1 majestic
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
|
Loading…
Reference in New Issue