summaryrefslogtreecommitdiffstats
path: root/defaultenv/defaultenv-2-base/init
diff options
context:
space:
mode:
Diffstat (limited to 'defaultenv/defaultenv-2-base/init')
-rw-r--r--defaultenv/defaultenv-2-base/init/automount22
-rw-r--r--defaultenv/defaultenv-2-base/init/ps17
2 files changed, 29 insertions, 0 deletions
diff --git a/defaultenv/defaultenv-2-base/init/automount b/defaultenv/defaultenv-2-base/init/automount
new file mode 100644
index 0000000..fe56d92
--- /dev/null
+++ b/defaultenv/defaultenv-2-base/init/automount
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ "$1" = menu ]; then
+ init-menu-add-entry "$0" "Automountpoints"
+ exit
+fi
+
+# automount tftp server based on $eth0.serverip
+
+mkdir -p /mnt/tftp
+automount /mnt/tftp 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp'
+
+# automount nfs server example
+
+#nfshost=somehost
+#mkdir -p /mnt/${nfshost}
+#automount /mnt/$nfshost "ifup eth0 && mount -t nfs ${nfshost}:/tftpboot /mnt/${nfshost}"
+
+# FAT on usb disk example
+
+#mkdir -p /mnt/fat
+#automount -d /mnt/fat 'usb && [ -e /dev/disk0.0 ] && mount /dev/disk0.0 /mnt/fat'
diff --git a/defaultenv/defaultenv-2-base/init/ps1 b/defaultenv/defaultenv-2-base/init/ps1
new file mode 100644
index 0000000..02d7b4b
--- /dev/null
+++ b/defaultenv/defaultenv-2-base/init/ps1
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ ${global.allow_color} = "true" ]; then
+ export PS1="\e[1;32mbarebox@\e[1;36m\h:\w\e[0m "
+else
+ export PS1="barebox@\h:\w "
+fi