2
0
forked from Ivasoft/openwrt
Files
openwrt/target/linux/mvebu/base-files/lib/preinit/79_move_config
Tomasz Maciej Nowak 727c3df5bb mvebu: shrink amount of packages and reorganize them
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>
2019-04-06 16:31:10 +02:00

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