forked from thias/glim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
glim_update.sh
executable file
·729 lines (628 loc) · 17.9 KB
/
glim_update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
#!/bin/bash
#clear
# ToDo List
# ToDo - a way to delete old/previous ISO versions
# ToDo - check if all inc-*.cfg are used in grub.cfg ?
# ToDo - add opensuse, mageia, Sabayon
#http://software.opensuse.org/132/nl
#https://www.mageia.org/nl/downloads/
# ToDo ? setup GRUB on the usb-stick
# - make partitions GLIM and GLIMDATA
#
# - setup variables for grub install
# export USBMNT=/run/media/${USER}/GLIM/
# export USBDEV=sdb
# sudo grub2-install --boot-directory=${USBMNT:-/mnt}/boot /dev/${USBDEV}
#
## Functions
function contains() {
local n=$#
local value=${!n}
for ((i=1;i < $#;i++)) {
if [ "${!i}" == "${value}" ]; then
echo "y"
return 0
fi
}
echo "n"
return 1
}
#
## Loop
if [ ! -f ./glim_update.conf ] || [ "$1" == "-c" ]
then
# ToDo - use values from existing config file as default when -c is used
read -e -p "USB-mount-point: " USBDIR
if [ "$USBDIR" == "" ]
then
echo "USB-mount-point is empty."
exit
elif [ ! -d $USBDIR ]
then
echo "USB-mount-point [$USBDIR] does not exist."
exit
fi
CURDIR=`pwd`
read -e -p "GLIM-dir [$CURDIR]: " GLIMDIR
if [ "$GLIMDIR" == "" ]
then
GLIMDIR="$CURDIR"
elif [ ! -d $GLIMDIR ]
then
echo "GLIM-dir [$GLIMDIR] does not exist."
exit
fi
ISODIR="$USBDIR/boot/iso"
if [ $(which dialog) == "" ]
then
GLIMDIALOG="0"
else
read -e -p "Use DIALOG [Y/n]: " usedialog </dev/tty
if [ "$usedialog" != "n" ] && [ "$usedialog" != "N" ]
then
GLIMDIALOG="1"
else
GLIMDIALOG="0"
fi
fi
# ToDo - remove trailing slash ? (not needed but looks better..)
echo "# glim_update config" > ./glim_update.conf
echo "GLIMDIR=$GLIMDIR" >> ./glim_update.conf
echo "USBDIR=$USBDIR" >> ./glim_update.conf
echo "ISODIR=$ISODIR" >> ./glim_update.conf
echo "GLIMDIALOG=\"$GLIMDIALOG\"" >> ./glim_update.conf
else
. ./glim_update.conf
fi
# check for $GLIMDIR $USBDIR and $ISODIR
if [ ! -d $GLIMDIR ] || [ "$GLIMDIR" == "" ]
then
echo "GLIMDIR not defined or does not exist [$GLIMDIR] run '$0 -c' to reconfigure"
exit
fi
if [ ! -d $USBDIR ] || [ "$USBDIR" == "" ]
then
echo "USBDIR not defined or does not exist [$USBDIR] run '$0 -c' to reconfigure"
exit
fi
if [ ! -d $ISODIR ]
then
mkdir -p $ISODIR
fi
if [ "$GLIMDIALOG" == "" ]
then
echo "GLIMDIALOG not defined, run '$0 -c' to reconfigure"
exit
fi
if [ "$GLIMDIALOG" != "0" ] && [ "$GLIMDIALOG" != "1" ]
then
echo "GLIMDIALOG wrongly configured [$GLIMDIALOG] run '$0 -c' to reconfigure"
exit
fi
# find the longest iso name
maxl=0
for incfile in `ls $GLIMDIR/grub2/inc*\.cfg`
do
while read line
do
if [[ "$line" == *isoname=* ]]
then
name=`echo "$line"|cut -d'"' -f2`
if [ "${#name}" -gt "$maxl" ]
then
maxl=${#name}
fi
fi
done < <(grep 'isoname=' $incfile | grep -v '#')
done
# ToDo - check if grub2 has been installed in the USBDIR
rsync -a $GLIMDIR/grub2/ $USBDIR/boot/grub2
# remove empty directories from USBISO dir
for dir in `ls $ISODIR/`
do
if [ -z "`find $ISODIR/$dir -type f`" ]
then
echo "removing emtpy dir $ISODIR/$dir"
rm -r $ISODIR/$dir
fi
done
# copy iso(file|name) in place of ==isocopy==
for incfile in `ls $GLIMDIR/grub2/inc*\.cfg`
do
# reset the variables
file=""; name=""; copy=""
while read -r line
do
if [[ "$line" == *isofile=* ]]
then
file="$line"
elif [[ "$line" == *isoname=* ]]
then
name="$line"
elif [[ "$line" == *isocopy=* ]]
then
# this is not really needed except to detect that isocopy exists
copy="$line"
fi
# when all file, link, name and copy are found, copy into copy :)
if [ "$file" != "" ] && [ "$name" != "" ] && [ "$copy" != "" ]
then
# build the filename for output
outfile=`echo $incfile|sed s:"$GLIMDIR":"$USBDIR/boot/":`
# sed the first occurrence!
sed -i "0,/==isocopy/{s:==isocopy==:$name\n$file:}" $outfile
# reset the variables
file=""; name=""; copy=""
fi
done < <(grep -E 'iso(file|name|copy)=' $incfile | grep -v '#')
done
# make sure all changes are written to USB
sync
# setup basic Dialog-Command
if [ "$GLIMDIALOG" == "1" ]
then
# get screen width+height
dh=`tput lines`
dw=`tput cols`
let dh=dh-5
let dw=dw-10
dialog_cmd=(dialog --keep-tite --backtitle "GRUB2 Live ISO Multiboot" --checklist "GRUB2 Live ISO Multiboot - Choose" $dh $dw $dh)
fi
# check for outdated iso- and tar-files
for isofile in `find $ISODIR/ -type f \( -name "*.iso" -or -name "*.tar" \) `
do
isoname=$(basename $isofile)
exists=$(grep -ri $isoname ./grub2/inc*.cfg)
if [ "$exists" == "" ]
then
outdated_exists="1"
echo "this file is outdated: $(echo "$(basename $(dirname $isofile))/$(basename $isofile)")"
fi
done
if [ "$outdated_exists" == "1" ]
then
read -p "Do you want to delete the outdated ISO's? [y/N] " deleteoutdated
if [ "$deleteoutdated" == "y" ] || [ "$deleteoutdated" == "Y" ]
then
for isofile in `find $ISODIR/ -type f \( -name "*.iso" -or -name "*.tar" \) `
do
isoname=$(basename $isofile)
exists=$(grep -ri $isoname ./grub2/inc*.cfg)
if [ "$exists" == "" ]
then
deletefile="$isofile"
rm $deletefile
deletemd5file="$deletefile.md5"
if [ -f $deletemd5file ]
then
rm $deletemd5file
fi
fi
done
fi
fi
# check for broken isos
read -p "Do you want to check for broken ISO links? [y/N] " checkbroken
if [ "$checkbroken" == "y" ] || [ "$checkbroken" == "Y" ]
then
for incfile in `ls $GLIMDIR/grub2/inc*\.cfg`
do
# reset the variables
file=""; link=""; name=""
while read -r line
do
if [[ "$line" == *isofile=* ]]
then
file=`echo "$line"|cut -d'"' -f2`
elif [[ "$line" == *isolink=* ]]
then
link=`echo "$line"|cut -d'"' -f2`
elif [[ "$line" == *isoname=* ]]
then
name=`echo "$line"|cut -d'"' -f2`
fi
# when all file, link and name are found, try to download md5
if [ "$file" != "" ] && [ "$link" != "" ] && [ "$name" != "" ]
then
# replace the ${isoname} and ${isopath} grub-variables
file=`echo "$file"|sed s/'${isoname}'/"$name"/g|sed s:'${isopath}':"$ISODIR":g`
link=`echo "$link"|sed s/'${isoname}'/"$name"/g`
# echo "link: $link"
checkexists=$(wget -q --spider $link && echo true || echo false)
if [[ "$checkexists" == "false" ]]
then
echo "outdated: $incfile -> $link"
fi
# reset the variables
file=""; link=""; name=""
fi
done < <(grep -E 'iso(file|link|name)=' $incfile | grep -v '#')
done
fi
# check md5's
# ToDo - maybe cache the md5's on disk instead of recalculating every time
read -p "Do you want to check the md5sums for your downloaded ISO's? [y/N] " checkmd5
if [ "$checkmd5" == "y" ] || [ "$checkmd5" == "Y" ]
then
for incfile in `ls $GLIMDIR/grub2/inc*\.cfg`
do
# reset the variables
file=""; link=""; name=""
while read -r line
do
if [[ "$line" == *isofile=* ]]
then
file=`echo "$line"|cut -d'"' -f2`
elif [[ "$line" == *isolink=* ]]
then
link=`echo "$line"|cut -d'"' -f2`
elif [[ "$line" == *isoname=* ]]
then
name=`echo "$line"|cut -d'"' -f2`
fi
# when all file, link and name are found, try to download md5
if [ "$file" != "" ] && [ "$link" != "" ] && [ "$name" != "" ]
then
# replace the ${isoname} and ${isopath} grub-variables
file=`echo "$file"|sed s/'${isoname}'/"$name"/g|sed s:'${isopath}':"$ISODIR":g`
link=`echo "$link"|sed s/'${isoname}'/"$name"/g`
if [ -f $file ]
then
md5link1="$link.md5"
md5link2="$link.md5.txt"
md5link3="${link%.*}.md5"
md5link4="$(dirname $link)/MD5SUM"
md5link5="$(dirname $link)/MD5SUMS"
md5link6="$(dirname $link)/md5sums.txt"
if [[ $name == *i486* ]]
then
md5link7="$(dirname $link)/latest-i486.inf"
else
md5link7="$(dirname $link)/latest-x86_64.inf"
fi
md5link8="$(dirname $link)/iso-checksums.txt"
md5found="0"
for i in {1..8}
do
eval md5link="\$md5link$i"
# echo $md5link
wget --quiet -O /tmp/glim_update.temp.md5 $md5link
wgetreturn=$?
if [[ $wgetreturn -eq 0 ]]
then
md5found="1"
break
fi
done
if [ "$md5found" == "1" ]
then
dl_md5=$(cat /tmp/glim_update.temp.md5 | grep "$name\$" | awk '{ print $1 }')
if [[ $dl_md5 == *$name* ]]
then
dl_md5=$(cat /tmp/glim_update.temp.md5 | grep "MD5SUM" | cut -d"=" -f2)
fi
if [[ $dl_md5 == sha256:*md5: ]]
then
dl_md5=$(cat /tmp/glim_update.temp.md5 | grep 'md5:' | grep "$name\$" | awk '{ print $2 }')
fi
curmd5=$(md5sum $file | awk '{ print $1 }')
if [ "$curmd5" != "$dl_md5" ]
then
echo "$(basename $(dirname $file))/$(basename $file)"
echo "file checksum is wrong"
# echo "cur: $curmd5"
# echo "dl_: $dl_md5"
# cat /tmp/glim_update.temp.md5
echo ""
redownloads=("${redownloads[@]}" "-O $file $link")
fi
# else
# echo "$(basename $(dirname $file))/$(basename $file)"
# echo "couldn't find md5"
# echo $(dirname $link)
# echo ""
fi
fi
# reset the variables
file=""; link=""; name=""
fi
done < <(grep -E 'iso(file|link|name)=' $incfile | grep -v '#')
done
# Redownloads
for redownload in "${redownloads[@]}"
do
file=$(echo $redownload|awk '{ print $2 }')
#read -p "Do you want to re-download? [Y/n] " redown
#if [ "$redown" != "n" ] && [ "$redown" != "N" ]
#then
# wget --quiet --show-progress $redownload
#fi
read -p "Do you want to re-download $(basename $(dirname $file))/$(basename $file)? [y/N] " redown
if [ "$redown" == "y" ] || [ "$redown" == "Y" ]
then
doredownloads=("${doredownloads[@]}" "$redownload")
fi
done
for redownload in "${doredownloads[@]}"
do
file=$(echo $redownload|awk '{ print $2 }')
echo "$(basename $(dirname $file))/$(basename $file)"
wget --quiet --show-progress $redownload
done
fi
# ask if user wants to delete ISO's
read -p "Do you want to delete ISO's? [y/N] " delete
if [ "$delete" == "y" ] || [ "$delete" == "Y" ]
then
# go through each folder to look for iso- and tar-files to delete
for incfile in `find $ISODIR/ -type f \( -name "*.iso" -or -name "*.tar" \) `
do
# echo "incfile: $incfile"
isofile=$(echo "$(basename $(dirname $incfile))/$(basename $incfile)")
# echo "isofile: $isofile"
if [ "$GLIMDIALOG" == "1" ]
then
deletefiles=("${deletefiles[@]}" "$incfile" "" "off")
else
read -p "Delete '$isofile'? [y/N] " isodelete
if [ "$isodelete" == "y" ] || [ "$isodelete" == "Y" ]
then
deletes=("${deletes[@]}" "$incfile")
fi
fi
done
if [ "$GLIMDIALOG" == "1" ]; then
deletes=$("${dialog_cmd[@]}" "${deletefiles[@]}" 2>&1 >/dev/tty)
fi
for deletefile in ${deletes[@]}
do
rm $deletefile
deletemd5file="$deletefile.md5"
if [ -f $deletemd5file ]
then
rm $deletemd5file
fi
done
fi
# ask if user wants to download more ISO's
read -p "Do you want to download ISO's? [y/N] " download
if [ "$download" == "y" ] || [ "$download" == "Y" ]
then
# go through each inc-*.cfg file to look for iso-files to download
for incfile in `ls $GLIMDIR/grub2/inc*\.cfg`
do
# if there is no isolink in $incfile don't even ask about downloading
isolinktest=`grep -m1 isolink $incfile`
if [ "$isolinktest" == "" ]
then
continue
fi
distro=$(echo $incfile|sed s/'.*inc-'/''/|sed s/'.cfg'/''/)
if [ "$GLIMDIALOG" == "1" ]
then
active="off"
# if there is an iso in the dir mark as active
if [ -d $ISODIR/$distro/ ]
then
if [ "$(ls $ISODIR/$distro/|grep '\.iso')" != "" ]; then
active="on"
fi
# OpenELEC does not have .iso file
if [ "$(ls $ISODIR/$distro/|grep '\.tar')" != "" ]; then
active="on"
fi
fi
distros=("${distros[@]}" "$distro" "" "$active")
else
read -p "Do you want to download ISO's for '$distro'? [y/N] " distrod
if [ "$distrod" != "y" ] && [ "$distrod" != "Y" ]
then
continue
fi
choices=("${choices[@]}" "$distro")
fi
done
if [ "$GLIMDIALOG" == "1" ]; then
choices=$("${dialog_cmd[@]}" "${distros[@]}" 2>&1 >/dev/tty)
fi
for choice in ${choices[@]}
do
incfile=$GLIMDIR/grub2/inc-$choice.cfg
isos=()
index=0
index_wget=""
# reset the variables
file=""; link=""; name=""
if [ "$GLIMDIALOG" == "0" ]
then
echo "| $choice"
fi
while read -r line
do
if [[ "$line" == *isofile=* ]]
then
file=`echo "$line"|cut -d'"' -f2`
elif [[ "$line" == *isolink=* ]]
then
link=`echo "$line"|cut -d'"' -f2`
elif [[ "$line" == *isoname=* ]]
then
name=`echo "$line"|cut -d'"' -f2`
fi
# when all file, link and name are found, initiate a download
if [ "$file" != "" ] && [ "$link" != "" ] && [ "$name" != "" ]
then
# check if file is already in checked list
if [ $(contains "${glim_list[@]}" "$file/$link/$name") != "y" ]
then
# add this file to checked list ( should it be $file, $link or $name ? )
glim_list=("${glim_list[@]}" "$file/$link/$name")
# replace the ${isoname} and ${isopath} grub-variables
file=`echo "$file"|sed s/'${isoname}'/"$name"/g|sed s:'${isopath}':"$ISODIR":g`
link=`echo "$link"|sed s/'${isoname}'/"$name"/g`
# ToDo - check md5 checksum of downloaded file
# - how to get the md5 checksum for an iso?
# - maybe set isomd5="" in the grub .cfg files?
# - this should also fix isos where the filename doesn't change when there is a new release...
# check if this file has been downloaded...
if [ "$GLIMDIALOG" == "1" ]
then
active="off"
if [ -f $file ]
then
active="on"
fi
let "index++"
index_wget[$index]="-O $file $link"
isos=("${isos[@]}" "$index" "$name" "$active")
else
if [ -f $file ]
then
printf "> name: %-${maxl}s | OK\n" $name
else
printf "> name: %-${maxl}s " $name
read -p "| Download ? [y/N] " download </dev/tty
if [ "$download" == "y" ] || [ "$download" == "Y" ]
then
mkdir -p $(dirname $file)
wget_links=("${wget_links[@]}" "-O $file $link")
fi
fi
fi
fi
# reset the variables
file=""; link=""; name=""
fi
done < <(grep -E 'iso(file|link|name)=' $incfile | grep -v '#')
if [ "$GLIMDIALOG" == "1" ]
then
downloads=$("${dialog_cmd[@]}" "${isos[@]}" 2>&1 >/dev/tty)
for download in $downloads
do
wget_links=("${wget_links[@]}" "${index_wget[$download]}")
done
fi
done
for wget_link in "${wget_links[@]}"
do
file=$(echo $wget_link|cut -d' ' -f2)
link=$(echo $wget_link|cut -d' ' -f3)
# check if already downloaded
if [ -f $file ]
then
continue
fi
echo ""
echo "$file"
echo "wget $link"
mkdir -p $(dirname $file)
wget --quiet --show-progress $wget_link
# ToDo - check if download went OK..
wgetreturn=$?
if [[ $wgetreturn -ne 0 ]]
then
echo "download failed!"
fi
done
# make sure all changes are written to USB
sync
fi
# TinyCoreLinux needs cde-dir in the usb-root
name_tmp=`grep 'isoname=' $GLIMDIR/grub2/inc-tinycorelinux.cfg | grep -v '#' | cut -d'"' -f2`
while read -r line; do
if [ "$name" == "" ]
then
name=$line
fi
if [ -f "$ISODIR/tinycorelinux/$line" ]
then
name=$line
fi
done <<< "$name_tmp"
if [ -f "$ISODIR/tinycorelinux/$name" ] && [ ! -d $USBDIR/cde ]
then
echo ""
echo ">> Extracting files from $name"
7z x -o$USBDIR $ISODIR/tinycorelinux/$name cde/ >/dev/null
fi
if [ ! -f "$ISODIR/tinycorelinux/$name" ] && [ -d $USBDIR/cde ]
then
echo ""
echo ">> TinyCoreLinux has no ISO anymore, deleting /cde directory"
rm -r $USBDIR/cde
fi
# OpenELEC needs KERNEL and SYSTEM in the usb-root
name_tmp=`grep 'isoname=' $GLIMDIR/grub2/inc-openelec.cfg | grep -v '#' | cut -d'"' -f2`
while read -r line; do
if [ "$name" == "" ]
then
name=$line
fi
if [ -f "$ISODIR/openelec/$line" ]
then
name=$line
fi
done <<< "$name_tmp"
if [ -f "$ISODIR/openelec/$name" ] && [ ! -f $USBDIR/KERNEL ] && [ ! -f $USBDIR/SYSTEM ]
then
echo ""
echo ">> Extracting files from $name"
tar -xf $ISODIR/openelec/$name --strip-components=2 -C $USBDIR $(echo "$name"|sed s/"\.tar"/""/)/target/KERNEL
tar -xf $ISODIR/openelec/$name --strip-components=2 -C $USBDIR $(echo "$name"|sed s/"\.tar"/""/)/target/SYSTEM
fi
if [ ! -f "$ISODIR/openelec/$name" ] && [ -f $USBDIR/KERNEL ] && [ -f $USBDIR/SYSTEM ]
then
echo ""
echo ">> OpenELEC has no TAR anymore, deleting /KERNEL and /SYSTEM files"
rm $USBDIR/KERNEL
rm $USBDIR/SYSTEM
fi
exit
# ToDo - unpacking etc.
if [ ! -f ./boot/iso/kolibri/kolibri.iso ]
then
# http://wiki.kolibrios.org/wiki/Booting_from_GRUB
mkdir -p ./boot/iso/kolibri
wget -O ./boot/iso/kolibri/latest-iso.7z http://builds.kolibrios.org/eng/latest-iso.7z
# 7z x latest-iso.7z
# rm latest-iso.7z
fi
# ToDo - unpacking etc.
if [ ! -f ./boot/iso/haiku/haiku-r1alpha4.iso ]
then
mkdir -p ./boot/iso/haiku
wget -O ./boot/iso/haiku/haiku-r1alpha4.1-iso.zip http://ftp.snt.utwente.nl/pub/os/Haiku/releases/r1alpha4.1/haiku-r1alpha4.1-iso.zip
# unzip haiku-r1alpha4.1-iso.zip
# rm haiku-r1alpha4.1-iso.zip
fi
# ToDo - unpacking etc.
if [ ! -f ./boot/iso/menuetos/current.zip ]
then
mkdir -p ./boot/iso/menuetos
wget -O ./boot/iso/menuetos/current.zip http://www.menuetos.be/download.php?CurrentMenuetOS
fi
if [ ! -f ./boot/iso/webconverger/latest.iso ]
then
mkdir -p ./boot/iso/webconverger
wget -O ./boot/iso/webconverger/latest.iso http://dl.webconverger.com/latest.iso
fi
if [ ! -f ./boot/iso/sabayon/Sabayon_Linux_14.12_amd64_GNOME.iso ]
then
mkdir -p ./boot/iso/sabayon
wget -O ./boot/iso/sabayon/Sabayon_Linux_14.12_amd64_GNOME.iso http://dl.sabayon.org/iso/monthly/Sabayon_Linux_14.12_amd64_GNOME.iso
fi
if [ ! -f ./boot/iso/geexbox/geexbox-3.1-i386.iso ]
then
mkdir -p ./boot/iso/geexbox
wget -O ./boot/iso/geexbox/geexbox-3.1-i386.iso http://www.geexbox.org/wp-content/plugins/download-monitor/download.php?id=geexbox-3.1-i386.iso
fi
if [ ! -f ./boot/iso/rlsd/rlsd-12112014-i686.iso ]
then
mkdir -p ./boot/iso/rlsd
wget -O ./boot/iso/rlsd/rlsd-12112014-i686.iso http://dimkr.insomnia247.nl/releases/i686/rlsd-12112014-i686.iso
fi
if [ ! -f ./boot/iso/delicate/delicate-0.1-alpha5.iso ]
then
mkdir -p ./boot/iso/delicate
wget -O ./boot/iso/delicate/delicate-0.1-alpha5.iso http://delicate-linux.net/0.1/download/iso/delicate-0.1-alpha5.iso
fi