forked from Ivasoft/openwrt
Since most of devices using SD card image to boot, use ext4 as boot files system we can drop fat fs related packages. Also move packages which are added repeatedly across subtargets to their default packages, with droping the ones that are enabled in target kernel configugation. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
26 lines
444 B
Bash
26 lines
444 B
Bash
#!/bin/sh
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
|
|
BOOTPART=/dev/mmcblk0p1
|
|
|
|
. /lib/functions.sh
|
|
|
|
move_config() {
|
|
if [ -b $BOOTPART ]; then
|
|
case $(board_name) in
|
|
turris-omnia)
|
|
insmod nls_cp437
|
|
insmod nls_iso8859-1
|
|
insmod fat
|
|
insmod vfat
|
|
;;
|
|
esac
|
|
mkdir -p /boot
|
|
mount -o rw,noatime $BOOTPART /boot
|
|
[ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
|
|
umount /boot
|
|
fi
|
|
}
|
|
|
|
boot_hook_add preinit_mount_root move_config
|