mvebu: drop preinit script
[openwrt/svn-archive/archive.git] / target / linux / mvebu / base-files / lib / mvebu.sh
index 9d06626793ce281c8dc8fb667b2d1b3ee717e8fd..e8985b466431a8e7e1740802a32cbfc0687b77f2 100755 (executable)
@@ -50,6 +50,7 @@ mvebu_board_detect() {
 mvebu_board_name() {
        local name
 
+       [ -f /tmp/sysinfo/board_name ] || mvebu_board_detect
        [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
        [ -z "$name" ] && name="unknown"