summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
Diffstat (limited to 'remote')
-rwxr-xr-xremote/rootfs/rootfs-stage32/data/usr/sbin/mountexport12
1 files changed, 12 insertions, 0 deletions
diff --git a/remote/rootfs/rootfs-stage32/data/usr/sbin/mountexport b/remote/rootfs/rootfs-stage32/data/usr/sbin/mountexport
new file mode 100755
index 00000000..9db0ff4d
--- /dev/null
+++ b/remote/rootfs/rootfs-stage32/data/usr/sbin/mountexport
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if grep "Ubuntu" "/etc/issue" >/dev/null; then
+ EXPORT="132.230.4.6:/srv/openslx/export/nfs/ubuntu-12.04-test"
+elif grep "SUSE" "/etc/issue" >/dev/null; then
+ EXPORT="132.230.4.6:/srv/openslx/export/nfs/suse-12.1-default"
+else
+ echo "Could not determine System"
+fi
+
+mount -t nfs -o ro,async,nolock "$EXPORT" /openslx/mnt
+mount -o remount,append:/openslx/mnt=ro /