X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flive;h=f539f52343005992399de5efe743f85981896b89;hb=d0fbcc9b3747ab4339f7487e7d845b467962139c;hp=d52ae7c61e4e10095fe4f775a16253f6827c16cb;hpb=833abaa35c3a77075dd57f3f1a3633d79109a5b4;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index d52ae7c..f539f52 100755 --- a/scripts/live +++ b/scripts/live @@ -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#*=}"