Browse Source

mvebu: drop preinit script

The /lib/mvebu.sh script can now handle this task.

Signed-off-by: Luka Perkov <[email protected]>

SVN-Revision: 41341
Luka Perkov 11 years ago
parent
commit
cb3d5242ca

+ 1 - 0
target/linux/mvebu/base-files/lib/mvebu.sh

@@ -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"
 

+ 0 - 9
target/linux/mvebu/base-files/lib/preinit/03_preinit_do_mvebu.sh

@@ -1,9 +0,0 @@
-#!/bin/sh
-
-do_mvebu() {
-	. /lib/mvebu.sh
-
-	mvebu_board_detect
-}
-
-boot_hook_add preinit_main do_mvebu