summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-at91-defaultenv
diff options
context:
space:
mode:
Diffstat (limited to 'configs/platform-v7a/barebox-at91-defaultenv')
-rwxr-xr-xconfigs/platform-v7a/barebox-at91-defaultenv/init/bootsource9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/platform-v7a/barebox-at91-defaultenv/init/bootsource b/configs/platform-v7a/barebox-at91-defaultenv/init/bootsource
new file mode 100755
index 0000000..35ee4d9
--- /dev/null
+++ b/configs/platform-v7a/barebox-at91-defaultenv/init/bootsource
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -n "$nv.boot.default" ]; then
+ exit
+fi
+
+if [ $bootsource = mmc ]; then
+ global.boot.default="mmc${bootsource_instance}.1 net"
+fi