mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
92e60260d5
This commit made the following changes to sync all bootcount scripts: 1. use boot() instead of start() This script only needs to be executed once when boot is complete. use boot() to make this explicit. 2. drop sourcing of /lib/functions.sh This is aready done in /etc/rc.common. 3. ramips: replace board name checking with a case Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
17 lines
217 B
Bash
Executable File
17 lines
217 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
|
|
boot() {
|
|
case $(board_name) in
|
|
linksys,caiman |\
|
|
linksys,cobra |\
|
|
linksys,mamba |\
|
|
linksys,rango |\
|
|
linksys,shelby |\
|
|
linksys,venom)
|
|
mtd resetbc s_env || true
|
|
;;
|
|
esac
|
|
}
|