mirror of
https://github.com/rancher/os-kernel.git
synced 2025-09-14 05:50:18 +00:00
Fix script indent
This commit is contained in:
@@ -9,14 +9,14 @@ fi
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo "--- ${KERNEL_VERSION} Kernel prepared for RancherOS"
|
echo "--- ${KERNEL_VERSION} Kernel prepared for RancherOS"
|
||||||
echo " ./dist/kernel/linux-${KERNEL_VERSION}-src.tgz"
|
echo " ./dist/kernel/linux-${KERNEL_VERSION}-src.tgz"
|
||||||
echo " ./dist/kernel/extra-linux-${KERNEL_VERSION}-x86.tar.gz"
|
echo " ./dist/kernel/extra-linux-${KERNEL_VERSION}-x86.tar.gz"
|
||||||
echo " ./dist/kernel/build-linux-${KERNEL_VERSION}-x86.tar.gz"
|
echo " ./dist/kernel/build-linux-${KERNEL_VERSION}-x86.tar.gz"
|
||||||
echo " ./dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz"
|
echo " ./dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz"
|
||||||
echo " ./dist/kernel/config"
|
echo " ./dist/kernel/config"
|
||||||
echo " ./dist/kernel/modules-main.list"
|
echo " ./dist/kernel/modules-main.list"
|
||||||
echo " ./dist/kernel/modules-extra.list"
|
echo " ./dist/kernel/modules-extra.list"
|
||||||
echo " ./release.log"
|
echo " ./release.log"
|
||||||
echo
|
echo
|
||||||
echo "Images ready to push:"
|
echo "Images ready to push:"
|
||||||
cat dist/images
|
cat dist/images
|
||||||
|
@@ -6,28 +6,28 @@ cd $(dirname $0)/..
|
|||||||
FIRMWARE=$(readlink -f scripts/firmware)
|
FIRMWARE=$(readlink -f scripts/firmware)
|
||||||
echo "FIRMWARE test: $FIRMWARE"
|
echo "FIRMWARE test: $FIRMWARE"
|
||||||
|
|
||||||
if [ ! -e linux-firmware ]; then
|
if [ ! -e linux-firmware ]; then
|
||||||
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
|
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd linux-firmware
|
cd linux-firmware
|
||||||
|
|
||||||
for i in $(<$FIRMWARE); do
|
for i in $(<$FIRMWARE); do
|
||||||
if [ -e $i ]; then
|
if [ -e $i ]; then
|
||||||
glob=$(echo $i | sed 's/^\(.*\)-\([^-]*\)\.\([^.]*\)/\1-*.\3/')
|
glob=$(echo $i | sed 's/^\(.*\)-\([^-]*\)\.\([^.]*\)/\1-*.\3/')
|
||||||
#echo Found $i, trying $glob
|
#echo Found $i, trying $glob
|
||||||
latest=$(ls $glob | xargs -n1 -I{} -- git log -1 --format="%ai {}" {} | sort | tail -n1 | cut -d " " -f4)
|
latest=$(ls $glob | xargs -n1 -I{} -- git log -1 --format="%ai {}" {} | sort | tail -n1 | cut -d " " -f4)
|
||||||
if [ "$latest" != "$i" ]; then
|
if [ "$latest" != "$i" ]; then
|
||||||
echo "ERROR: Firmware $i in $FIRMWARE is not the latest - update to $latest"
|
echo "ERROR: Firmware $i in $FIRMWARE is not the latest - update to $latest"
|
||||||
STOP="1"
|
STOP="1"
|
||||||
echo $latest >> new-firmware
|
echo $latest >> new-firmware
|
||||||
else
|
|
||||||
echo $i >> new-firmware
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo WARNING: Firmware listed in $FIRMWARE Not found $i
|
echo $i >> new-firmware
|
||||||
fi
|
fi
|
||||||
done
|
else
|
||||||
|
echo WARNING: Firmware listed in $FIRMWARE Not found $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if [ "$STOP" != "" ]; then
|
if [ "$STOP" != "" ]; then
|
||||||
echo "Update the $FIRMWARE file:"
|
echo "Update the $FIRMWARE file:"
|
||||||
|
Reference in New Issue
Block a user