summaryrefslogtreecommitdiff
path: root/scripts/live
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live')
-rwxr-xr-xscripts/live19
1 files changed, 19 insertions, 0 deletions
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#*=}"