treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / init.d / bootcount
index a9fdd666c37ae9736491d605cfca4c11b96bd610..0f260fa3fc67f9bb44d8273a25b1d4549f41ee79 100755 (executable)
@@ -3,9 +3,9 @@
 START=99
 
 start() {
-       . /lib/ramips.sh
+       . /lib/functions.sh
 
-       local board=$(ramips_board_name)
+       local board=$(board_name)
        if [ $board = "sk-wb8" ]; then
                fw_setenv bootcount 0
        fi