Adding upstream version 1.95.1.
[live-boot-grml.git] / scripts / live
index d52ae7c..f539f52 100755 (executable)
@@ -201,6 +201,25 @@ parse_cmdline ()
                                export LOCATION
                                ;;
 
+                       url=*)
+                               LOCATION="${x#url=}"
+
+                               mount -n -o bind /sys /root/sys
+                               mount -n -o bind /proc /root/proc
+                               mount -n -o bind /dev /root/dev
+
+                               mkdir -p /root/var/run/network
+                               chroot /root ifup -a
+                               chroot /root wget -P /tmp "$location"
+                               chroot /root ifdown -a
+
+                               umount /root/sys
+                               umount /root/proc
+                               umount /root/dev
+
+                               LOCATION="/tmp/$(basename "$location")"
+                               ;;
+
                        */*=*)
                                question="${x%%=*}"
                                value="${x#*=}"