ramips: Speed up eeprom read/write
[openwrt/.git] / target / linux / ramips / base-files / etc / init.d / bootcount
index b93e3c96f1a1fa9b1294e4ef30a5ffc57dfac6d2..0f260fa3fc67f9bb44d8273a25b1d4549f41ee79 100755 (executable)
@@ -1,10 +1,11 @@
 #!/bin/sh /etc/rc.common
-. /lib/ramips.sh
 
 START=99
 
 start() {
-       local board=$(ramips_board_name)
+       . /lib/functions.sh
+
+       local board=$(board_name)
        if [ $board = "sk-wb8" ]; then
                fw_setenv bootcount 0
        fi