]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/usb/mountiso
More organization of USB boot key
[bacula/rescue] / rescue / linux / usb / mountiso
index e886530eeecd7e5e88ede63cd21d758d6506ee32..7bce790caa320b7ab894d7bce6407cd131e2c60e 100755 (executable)
@@ -1,12 +1,6 @@
 #!/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
+. ./config
 
 mkdir -p cdrom
-mount -o loop -t iso9660 $ISOIMAGE cdrom
+mount -o loop -t iso9660 $ISO_IMAGE cdrom