Improve removable_dev() in 9990-misc-helpers.sh when /sys/block/ is empty
[live-boot-grml.git] / components / 9990-mount-http.sh
index 16e69b6..2e68fe6 100755 (executable)
@@ -25,6 +25,9 @@ do_httpmount ()
                                                mount -t ramfs ram "${mountpoint}"
                                                mkdir -p "${dest}"
                                        fi
+                                       case "${url}" in
+                                               *:///*) url="${url%%:///*}://${ROOTSERVER}/${url##*:///}" ;;
+                                       esac
                                        if [ "${webfile}" = "FETCH" ]
                                        then
                                                case "$url" in
@@ -83,7 +86,7 @@ do_httpmount ()
        then
                if [ -d "${alt_mountpoint}" ]
                then
-                       umount "${alt_mountpoint}"
+                       umount "${alt_mountpoint}"
                        rmdir "${alt_mountpoint}"
                fi
                umount "${mountpoint}"