This repository was archived by the owner on Dec 1, 2022. It is now read-only.
File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 49
49
50
50
apt-get update
51
51
apt-get install --no-install-recommends -y linux-image-${item}
52
+ if [ $? -ne 0 ]; then
53
+ if [ " $deb_ver " == " 8" ]; then
54
+ dpkg -l | grep -q ' linux-base' || {
55
+ wget --no-check-certificate -qO ' /tmp/linux-base_3.5_all.deb' ' http://snapshot.debian.org/archive/debian/20120304T220938Z/pool/main/l/linux-base/linux-base_3.5_all.deb'
56
+ dpkg -i ' /tmp/linux-base_3.5_all.deb'
57
+ }
58
+ wget --no-check-certificate -qO ' /tmp/linux-image-3.16.0-4-amd64_3.16.43-2+deb8u5_amd64.deb' ' http://snapshot.debian.org/archive/debian/20171008T163152Z/pool/main/l/linux/linux-image-3.16.0-4-amd64_3.16.43-2+deb8u5_amd64.deb'
59
+ dpkg -i ' /tmp/linux-image-3.16.0-4-amd64_3.16.43-2+deb8u5_amd64.deb'
60
+ if [ $? -ne 0 ]; then
61
+ exit 1
62
+ fi
63
+ elif [ " $deb_ver " == " 9" ]; then
64
+ dpkg -l | grep -q ' linux-base' || {
65
+ wget --no-check-certificate -qO ' /tmp/linux-base_4.5_all.deb' ' http://snapshot.debian.org/archive/debian/20160917T042239Z/pool/main/l/linux-base/linux-base_4.5_all.deb'
66
+ dpkg -i ' /tmp/linux-base_4.5_all.deb'
67
+ }
68
+ wget --no-check-certificate -qO ' /tmp/linux-image-4.9.0-4-amd64_4.9.65-3+deb9u1_amd64.deb' ' http://snapshot.debian.org/archive/debian/20171224T175424Z/pool/main/l/linux/linux-image-4.9.0-4-amd64_4.9.65-3+deb9u1_amd64.deb'
69
+ dpkg -i ' /tmp/linux-image-4.9.0-4-amd64_4.9.65-3+deb9u1_amd64.deb'
70
+ if [ $? -ne 0 ]; then
71
+ exit 1
72
+ fi
73
+ else
74
+ exit 1
75
+ fi
76
+ else
77
+ exit 1
78
+ fi
52
79
while true ; do
53
80
List_Kernel=" $( dpkg -l | grep ' linux-image\|linux-modules\|linux-generic\|linux-headers' | grep -v " $item " ) "
54
81
Num_Kernel=" $( echo " $List_Kernel " | sed ' /^$/d' | wc -l) "
You can’t perform that action at this time.
0 commit comments