treewide: sync bootcount scripts across targets
authorChuanhong Guo <gch981213@gmail.com>
Sat, 10 Aug 2019 11:35:56 +0000 (19:35 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 17 Aug 2019 15:52:34 +0000 (23:52 +0800)
commit92e60260d53bc164b99e4fa5aec32c0d29d6ec26
tree283d5b940a6e3e15099ea33ef0bc84d84e5b3325
parentced2b7bb988426aaece07a78c17d5a7c268e54c4
treewide: sync bootcount scripts across targets

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>
target/linux/ath79/base-files/etc/init.d/bootcount
target/linux/ipq40xx/base-files/etc/init.d/bootcount
target/linux/ipq806x/base-files/etc/init.d/bootcount
target/linux/kirkwood/base-files/etc/init.d/bootcount
target/linux/mvebu/base-files/etc/init.d/bootcount
target/linux/ramips/base-files/etc/init.d/bootcount