projects
/
openwrt
/
staging
/
chunkeey.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ipq40xx: add netgear wac510 support
[openwrt/staging/chunkeey.git]
/
target
/
linux
/
ipq40xx
/
base-files
/
etc
/
init.d
/
bootcount
1
#!/bin/sh /etc/rc.common
2
3
START
=
99
4
5
boot
() {
6
case
$
(
board_name
)
in
7
alfa-network
,
ap120c-ac
)
8
[
-n
"$(fw_printenv bootcount changed 2>/dev/null)"
] &&
\
9
echo -e
"bootcount
\n
changed
\n
"
|
/
usr
/
sbin
/
fw_setenv
-s
-
10
;;
11
linksys
,
ea6350v3|\
12
linksys
,
ea8300|\
13
linksys
,
mr8300
)
14
mtd resetbc s_env || true
15
;;
16
netgear
,
wac510
)
17
fw_setenv boot_cnt
=
0
18
;;
19
esac
20
}