openwrtv4/target/linux/ramips/base-files/etc/init.d/bootcount
Mathias Kresin f12a32630f treewide: use the generic board_name function
Use the generic function instead ot the target specific ones.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-07-15 23:13:34 +02:00

12 lines
157 B
Bash
Executable file

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