X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-mount-http.sh;h=2e68fe61b02b82fb345ce5aa25db05fc734afe79;hb=269069291cc11027e3fba8e295d272ec84577604;hp=16e69b692e04ac178e016591a5f7fe6c8cfbffc9;hpb=a331218718282c5496ff062a0f6aa55908224862;p=live-boot-grml.git diff --git a/components/9990-mount-http.sh b/components/9990-mount-http.sh index 16e69b6..2e68fe6 100755 --- a/components/9990-mount-http.sh +++ b/components/9990-mount-http.sh @@ -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}"