default the host in fetch urls to be ROOTSERVER if it is blank
[live-boot-grml.git] / components / 9990-mount-http.sh
index d0f4900..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