pkg: add dtb updater to kernel updater
This commit is contained in:
parent
e84320e823
commit
f52da03e64
1 changed files with 3 additions and 1 deletions
|
|
@ -1,10 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# move kernel to FAT partition after kernel update
|
||||
# move kernel and copy Gateway dtb to FAT partition after kernel update
|
||||
if [ -f /boot/kernel/kernel.bin ]; then
|
||||
INSTALLED_KERNEL=$(cat /usr/local/opnsense/version/kernel)
|
||||
if [ "${INSTALLED_KERNEL}" != "26.1.3" ]; then
|
||||
cp /boot/msdos/kernel.img /boot/msdos/kernel.old
|
||||
mv /boot/kernel/kernel.bin /boot/msdos/kernel.img
|
||||
cp /boot/msdos/dtb/mono-gateway-dk.dtb /boot/msdos/dtb/mono-gateway-dk.old
|
||||
cp /boot/dtb/freescale/mono-gateway-dk.dtb /boot/msdos/dtb/
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue