]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/usb/mountiso
Start USB rescue
[bacula/rescue] / rescue / linux / usb / mountiso
diff --git a/rescue/linux/usb/mountiso b/rescue/linux/usb/mountiso
new file mode 100755 (executable)
index 0000000..e886530
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+
+if [ "x$1" != "x" ] ; then
+ISOIMAGE=$1
+elif [ "x$ISOIMAGE" = "x" ] ; then
+   echo "Please specify the ISO on the command line or set the enviornment variable ISOIMAGE to point to your ISO"
+   exit 1
+fi
+
+mkdir -p cdrom
+mount -o loop -t iso9660 $ISOIMAGE cdrom