treewide: use only board_name function to get name
[openwrt/openwrt.git] / target / linux / orion / generic / base-files / etc / uci-defaults / 09_hardware
index 5b30f27e5e3843a90fe846eba331ba3d9975a84f..751749d13dd4ca5cd2d883f64cc04f80d5e8f2f5 100644 (file)
@@ -10,7 +10,7 @@
 # This script sets system defaults for the hardware on firstboot
 #
 
-hardware=`sed -n /Hardware/s/.*:.//p /proc/cpuinfo`
+. /lib/functions.sh
 
 wrt350nv2_default() {
 # leds
@@ -47,7 +47,7 @@ __EOF
        }
 }
 
-case "${hardware}" in
+case "$(board_name)" in
  'Linksys WRT350N v2')
        wrt350nv2_default
        ;;