ramips: fixup-mac-address: add missing include
[openwrt/openwrt.git] / target / linux / ramips / base-files / sbin / fixup-mac-address
index 6e3bac4..900fb7d 100755 (executable)
@@ -1,13 +1,15 @@
 #!/bin/sh
 . /lib/functions.sh
 . /lib/functions/system.sh
+. /lib/ramips.sh
 
 partname=""
 offset=""
 NEW_MAC=
 YES=
 
-case "$(cat /tmp/sysinfo/board_name)" in
+board=$(ramips_board_name)
+case $board in
        witi)
                partname=factory
                offset=$((0xe000))