openwrtv3/target/linux/ramips/base-files/etc/init.d/bootcount
Matthias Schiffer 175fbe4d4e
ramips: move /lib/ramips.sh include in /etc/init.d/bootcount into start()
Enabling the init script offline will print an error otherwise.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-09-25 23:26:42 +02:00

12 lines
161 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=99
start() {
. /lib/ramips.sh
local board=$(ramips_board_name)
if [ $board = "sk-wb8" ]; then
fw_setenv bootcount 0
fi
}