summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-13 16:04:51 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-18 20:19:20 +0800
commit2b26b148f4c8633a19bca0cbb96d4393ece8f54e (patch)
tree3205fff7b2750a5178beacb619763680fdf9bcf0
parentbb618e309df8a1161441670005decc1f8b8f76f6 (diff)
downloadbarebox-2b26b148f4c8633a19bca0cbb96d4393ece8f54e.tar.gz
defaultenv: add binfmt support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-rw-r--r--defaultenv/bin/boot4
1 files changed, 4 insertions, 0 deletions
diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot
index b54ea6b..61b893a 100644
--- a/defaultenv/bin/boot
+++ b/defaultenv/bin/boot
@@ -134,4 +134,8 @@ fi
echo "booting kernel from $kdev"
+#try to execute the file
+# it does not work as example for /dev as the file is not executable
+$kdev $bootm_opt
+# fall back on bootm
bootm $bootm_opt $kdev