Fix typo in boot order setting

This commit is contained in:
Simon Long 2020-07-06 16:22:13 +01:00
parent 4a55376c60
commit fe6cd25dd2

View File

@ -1192,9 +1192,9 @@ do_boot_order() {
CURDATE=$(date -d "`vcgencmd bootloader_version | head -n 1`" +%Y%m%d)
FILNAME="none"
if grep -q "stable" /etc/default/rpi-eeprom-update ; then
EEPATH = "/lib/firmware/raspberrypi/bootloader/stable/pieeprom*.bin"
EEPATH="/lib/firmware/raspberrypi/bootloader/stable/pieeprom*.bin"
else
EEPATH = "/lib/firmware/raspberrypi/bootloader/critical/pieeprom*.bin"
EEPATH="/lib/firmware/raspberrypi/bootloader/critical/pieeprom*.bin"
fi
for filename in $EEPATH ; do
FILDATE=$(date -d "`echo $filename | cut -d - -f 2- | cut -d . -f 1`" +%Y%m%d)