projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mediatek: add support for ipTIME A6004MX Add basic support for ipTIME A6004MX.
[openwrt/openwrt.git]
/
target
/
linux
/
mediatek
/
mt7629
/
base-files
/
etc
/
init.d
/
bootcount
1
#!/bin/sh /etc/rc.common
2
# SPDX-License-Identifier: GPL-2.0-only
3
4
START
=
99
5
6
boot
() {
7
case
$
(
board_name
)
in
8
iptime
,
a6004mx
)
9
if
[
`fw_printenv boot_sector`
=
"boot_sector=B"
];
then
10
echo
"bootcount: boot_sector must be A. Rebooting..."
11
fw_setenv boot_sector A
12
reboot
13
exit
1
14
fi
15
;;
16
esac
17
}