summaryrefslogtreecommitdiff
path: root/scripts/nfs
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-06-08 21:13:41 +0000
committerJeff Bailey <jbailey@ubuntu.com>2005-06-08 21:13:41 +0000
commitde9c780f57ae626f05ec1c971c56648250cba03c (patch)
tree585d8515ef623e64b2800cc4266920fff1564940 /scripts/nfs
Initial checkin
Diffstat (limited to 'scripts/nfs')
-rw-r--r--scripts/nfs11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/nfs b/scripts/nfs
new file mode 100644
index 0000000..1225c4d
--- /dev/null
+++ b/scripts/nfs
@@ -0,0 +1,11 @@
+
+# Paramter: Where the root should be mounted
+mountroot ()
+{
+ ipconfig ${DEVICE}
+ . /tmp/net-${DEVICE}.conf
+ if [ "x${NFSROOT}" = "xauto" ]; then
+ NFSROOT=${ROOTSERVER}:${ROOTPATH}
+ fi
+ nfsmount ${NFSROOT} ${rootmnt}
+}