e4e984f2a0
Do not parse /tmp/sysinfo/board_name, /proc/cpuinfo or the device tree compatible string directly. Always use the board_name function to get the board name. The admswconfig package still reads /proc/cpuinfo directly. The code looks somehow broken and the whole adm5120 which uses this package looks unmaintained. Leave it as it is for now. Signed-off-by: Mathias Kresin <dev@kresin.me>
16 lines
312 B
Bash
16 lines
312 B
Bash
#!/bin/sh
|
|
|
|
BOOTPART=/dev/sda1
|
|
|
|
move_config() {
|
|
. /lib/functions.sh
|
|
|
|
[ "$(board_name)" = "mbl" ] || return
|
|
if [ -b $BOOTPART ]; then
|
|
mkdir -p /boot
|
|
mount -t ext4 -o rw,noatime $BOOTPART /boot
|
|
[ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
|
|
fi
|
|
}
|
|
|
|
boot_hook_add preinit_mount_root move_config
|