From 92e60260d53bc164b99e4fa5aec32c0d29d6ec26 Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Sat, 10 Aug 2019 19:35:56 +0800 Subject: 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 --- target/linux/ipq40xx/base-files/etc/init.d/bootcount | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'target/linux/ipq40xx/base-files/etc/init.d/bootcount') diff --git a/target/linux/ipq40xx/base-files/etc/init.d/bootcount b/target/linux/ipq40xx/base-files/etc/init.d/bootcount index f2d76f125f..b9d625e296 100755 --- a/target/linux/ipq40xx/base-files/etc/init.d/bootcount +++ b/target/linux/ipq40xx/base-files/etc/init.d/bootcount @@ -2,9 +2,7 @@ START=99 -start() { - . /lib/functions.sh - +boot() { case $(board_name) in alfa-network,ap120c-ac) [ -n "$(fw_printenv bootcount changed 2>/dev/null)" ] &&\ -- cgit v1.2.3