about summary refs log tree commit diff
path: root/sys/mountloop
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-03-13T14·24+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-03-13T14·24+0000
commit75d788b0f24e8de033a22c0869032549d602d4f6 (patch)
treefd60e3cb1a8cdfb1d83db54a2ce0e75d83596412 /sys/mountloop
parent841fcbd04755c7a2865c51c1e2d3b045976b7452 (diff)
* Initial version of nix.
Diffstat (limited to 'sys/mountloop')
-rwxr-xr-xsys/mountloop8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/mountloop b/sys/mountloop
new file mode 100755
index 000000000000..1d5fe32fc411
--- /dev/null
+++ b/sys/mountloop
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+. ./settings
+
+mkdir $target
+if ! mount -o loop -t ext3 $image $target; then
+    exit 1
+fi