Remove wheezy support and add stretch
This commit is contained in:
parent
cc3d7bd7cd
commit
b61bcb0e16
|
@ -1,14 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This script do the following:
|
# This script do the following:
|
||||||
# Download Debian Initrd for Wheezy, Jessie and Sid
|
# Download Debian Initrd for Jessie, Stretch and Sid
|
||||||
# Download firmwares:
|
# Download firmwares:
|
||||||
# bnx2
|
# bnx2
|
||||||
# all non-free (for tigon)
|
# all non-free (for tigon)
|
||||||
# Extract all downloaded files
|
# Extract all downloaded files
|
||||||
# Make a new initrd with the firmwares
|
# Make a new initrd with the previous firmwares
|
||||||
|
|
||||||
for DISTRO in wheezy jessie sid; do # For ALL Debian's version
|
for DISTRO in jessie stretch sid; do # For ALL Debian's version
|
||||||
|
|
||||||
TEMP_DIR=$(mktemp -d)
|
TEMP_DIR=$(mktemp -d)
|
||||||
pushd "${TEMP_DIR}"
|
pushd "${TEMP_DIR}"
|
||||||
|
@ -21,7 +21,6 @@ for DISTRO in wheezy jessie sid; do # For ALL Debian's version
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
# Download bnx2's firmware and uncompress it
|
# Download bnx2's firmware and uncompress it
|
||||||
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_0.43_all.deb
|
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_0.43_all.deb
|
||||||
dpkg-deb -x firmware-bnx2_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
dpkg-deb -x firmware-bnx2_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
||||||
|
@ -30,7 +29,6 @@ for DISTRO in wheezy jessie sid; do # For ALL Debian's version
|
||||||
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-linux-nonfree_0.43_all.deb
|
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-linux-nonfree_0.43_all.deb
|
||||||
dpkg-deb -x firmware-linux-nonfree_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
dpkg-deb -x firmware-linux-nonfree_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
||||||
|
|
||||||
|
|
||||||
# Make a new initrd
|
# Make a new initrd
|
||||||
mv initrd.gz initrd_orig.gz
|
mv initrd.gz initrd_orig.gz
|
||||||
pushd "${TEMP_DIR}"/mkinitrd/
|
pushd "${TEMP_DIR}"/mkinitrd/
|
||||||
|
@ -47,3 +45,4 @@ for DISTRO in wheezy jessie sid; do # For ALL Debian's version
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue