-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathu1-downsoft.sh
executable file
·77 lines (60 loc) · 2.16 KB
/
u1-downsoft.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
#!/bin/bash
source 00-config.sh
LNUCLEO="libncurses5-dev libssl-dev gcc make git exuberant-ctags bc libssl-dev xz-utils "
#dracut asciidoc, ojo instalar dracut en debian cambia mucho recompila y hace grubupdate
#lsinitrd
#https://catchchallenger.first-world.info/wiki/Quick_Benchmark:_Gzip_vs_Bzip2_vs_LZMA_vs_XZ_vs_LZ4_vs_LZO
# instalar manual en todo caso de fuentes
#fakeroot
#redhat sudo yum install gcc make git ctags ncurses-devel openssl-devel
#SUSE sudo zypper in git gcc ncurses-devel libopenssl-devel ctags cscope
LISOLINUX="nasm uuid-dev"
LISO="squashfs-tools genisoimage virtualbox dpkg-dev build-essential isolinux xorriso"
LISTA=" vrms $LNUCLEO $LISOLINUX $LISO " #syslinux
for PROG in $LISTA ; do
echo $PROG
OKP=`dpkg-query -W -f='${Status}' $PROG 2>/dev/null`; # da lo mismo si no esta que si no existe en general, si esta da "install ok installed", si no nada
if test x"$OKP" = x ; then
echo FALTA $PROG
break;
fi;
done;
if test x"$OKP" == x ; then
sudo apt-get update
#sudo apt-get upgrade
sudo apt-get --force-yes --yes install $LISTA ;
fi;
if test ! -e $KERNELNAME ; then
#comprobar si hay internet, y si ya esta completo
echo wget $KERNELURL$KERNELNAME
wget $KERNELURL/$KERNELNAME
else
echo Ya tenemos$KERNELNAME
fi
#wget
#tar -jxvf linux-libre-$nucleov-gnu.tar.bz2
# unxz linux-4.9.tar.xz
# gpg --keyserver hkp://keys.gnupg.net --recv-keys 00411886
# gpg --verify linux-4.9.tar.sign
#####
#make-kpkg clean
#fakeroot make-kpkg --initrd --revision=1.0.NAS kernel_image kernel_headers -j 16
# bajar
if test ! -e $ISOORIGEN ; then
#comprobar si hay internet, y si ya esta completo
wget $DOWN/$ISOORIGEN
else
echo Ya tenemos $ISOORIGEN
fi
# revisar si esta bajada incompleta con wget -c
#https://www.kernel.org/pub/linux/utils/boot/syslinux/
#https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.xz
if test ! -e $ISOLINUXDIR ; then
if test ! -e $ISOLINUXFILE ; then
#comprobar si hay internet, y si ya esta completo
wget $ISOLINUXURL
else
echo Ya tenemos $ISOLINUXFILE
fi
tar -xf $ISOLINUXFILE
fi