summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
diff options
context:
space:
mode:
Diffstat (limited to 'configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource')
-rw-r--r--configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource13
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource b/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
new file mode 100644
index 0000000..4de7163
--- /dev/null
+++ b/configs/platform-v7a/barebox-am335x-defaultenv/init/bootsource
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -n "$nv.boot.default" ]; then
+ exit
+fi
+
+if [ $bootsource = mmc ]; then
+ global.boot.default="bootchooser net"
+elif [ $bootsource = net ]; then
+ global.boot.default="net bootchooser"
+else
+ global.boot.default="disk0.1 net"
+fi