24 lines
318 B
Bash
Executable File
24 lines
318 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
|
|
. /lib/upgrade/asrock.sh
|
|
|
|
boot() {
|
|
case $(board_name) in
|
|
asrock,g10)
|
|
asrock_bootconfig_mangle "bootcheck"
|
|
if [ $? -eq 0 ]; then
|
|
reboot
|
|
fi
|
|
;;
|
|
edgecore,ecw5410)
|
|
fw_setenv bootcount 0
|
|
;;
|
|
linksys,ea7500-v1 |\
|
|
linksys,ea8500)
|
|
mtd resetbc s_env || true
|
|
;;
|
|
esac
|
|
}
|