1
1
Files
zyxel-vmg8825_b50b-cfw/package/base-files-qca/files/etc/init.d/done
T
2026-04-17 18:33:03 +02:00

27 lines
538 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=95
boot() {
mount_root done
rm -f /sysupgrade.tgz
local hk_board=$(grep -w "IPQ807x" /proc/device-tree/model | awk -F: '{print $1}')
[ -n "$hk_board" ] && {
local mount_check=$(ls /lib/firmware/IPQ8074/WIFI_FW/ | grep "bdwlan.bin")
if [ -z "$mount_check" ];then
. /etc/init.d/wifi_fw_mount
mount_wifi_fw
fi
}
# process user commands
[ -f /etc/rc.local ] && {
sh /etc/rc.local
}
# set leds to normal state
. /etc/diag.sh
set_state done
}