summaryrefslogtreecommitdiffstats
path: root/defaultenv/defaultenv-2-base/boot/net
diff options
context:
space:
mode:
Diffstat (limited to 'defaultenv/defaultenv-2-base/boot/net')
-rw-r--r--defaultenv/defaultenv-2-base/boot/net19
1 files changed, 19 insertions, 0 deletions
diff --git a/defaultenv/defaultenv-2-base/boot/net b/defaultenv/defaultenv-2-base/boot/net
new file mode 100644
index 0000000..05bb728
--- /dev/null
+++ b/defaultenv/defaultenv-2-base/boot/net
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if [ "$1" = menu ]; then
+ boot-menu-add-entry "$0" "network (tftp, nfs)"
+ exit
+fi
+
+path="/mnt/tftp"
+
+global.bootm.image="${path}/${global.user}-linux-${global.hostname}"
+
+oftree="${path}/${global.user}-oftree-${global.hostname}"
+if [ -f "${oftree}" ]; then
+ global.bootm.oftree="$oftree"
+fi
+
+nfsroot="/home/${global.user}/nfsroot/${global.hostname}"
+bootargs-ip
+global.linux.bootargs.dyn.root="root=/dev/nfs nfsroot=$nfsroot,v3,tcp"