Initial commit
This commit is contained in:
16
target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount
Executable file
16
target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
boot() {
|
||||
case $(board_name) in
|
||||
alfa-network,awusfree1)
|
||||
[ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
|
||||
echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
|
||||
;;
|
||||
xiaomi,mi-router-4c|\
|
||||
xiaomi,miwifi-nano)
|
||||
fw_setenv flag_boot_success 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
Reference in New Issue
Block a user