rootfs: disable fb terminals and enable uart console

Apart from not being usable, the fb terminals can overlay koreader
in some cases.
This commit is contained in:
Cosmin Gorgovan 2015-02-10 22:41:27 +00:00
parent e75e8516c6
commit 601ddc8600
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ config_rootfs() {
echo "okreader" > ./rootfs/etc/hostname
echo -e "127.0.0.1 localhost okreader\n" > ./rootfs/etc/hosts
echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4\n" > ./rootfs/etc/resolv.conf
# replace the framebuffer terminals with an uart terminal
mv ./rootfs/etc/inittab ./rootfs/etc/inittab.default
sed -r 's/^[0-9]+:[0-9]+:respawn/# &/' ./rootfs/etc/inittab.default > rootfs/etc/inittab
echo -e "\nT0:23:respawn:/sbin/getty -L ttymxc0 115200 vt100\n" >> ./rootfs/etc/inittab
mkdir ./rootfs/mnt/onboard