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