blob: cc6ece4d1c17f5bb38693ba0bfe1d5d30644b7fb (
plain)
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
|
#!/bin/sh
output_name="FLASHRESCUE"
output_file="flashrescue.iso"
rm -f $output
echo -n "Gerando imagem ISO de $output_name: "
cd root
genisoimage -o ../$output_file \
-b i586/isolinux/isolinux.bin \
-c i586/isolinux/boot.cat \
-input-charset ISO-8859-1 \
-no-emul-boot \
-boot-load-size 4 \
-J -R -l \
-quiet \
-V $output_name \
-boot-info-table .
if [ $? -eq 0 ]; then
output_size=$(ls -lah ../$output_file | awk '{ print $5 }')
echo "ok [$output_size]."
md5=$(md5sum ../$output_file | awk '{ print $1 }')
echo " md5: $md5"
else
echo "erro."
fi
cd - > /dev/null
|