1
0
mirror of https://github.com/MichielDerhaeg/build-linux.git synced 2025-09-02 12:42:50 +02:00

serial getty and correct rcS

This commit is contained in:
Michiel Derhaeg
2017-04-24 18:46:20 +02:00
parent 22030ddbb5
commit 4418759cf6
2 changed files with 13 additions and 12 deletions

View File

@@ -3,5 +3,6 @@
tty1::respawn:/sbin/getty 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
::respawn:/sbin/getty -L ttyS0 9600 vt100
::ctrlaltdel:/bin/umount -a -r
::shutdown:/usr/bin/umount -a -r

View File

@@ -1,24 +1,24 @@
#!/bin/sh
# TODO options
/usr/bin/mount -t proc proc /proc
/usr/bin/mount -t sysfs sys /sys
#/usr/bin/mount -t devtmpfs dev /dev
mkdir -p /dev/pts /dev/shm # TODO check if in filesystem
/usr/bin/mount -t devpts devpts /dev/pts
/usr/bin/mount -t tmpfs tmpfs /dev/shm
/usr/bin/mount -t tmpfs tmpfs /run
mount -t proc proc /proc -o nosuid,noexec,nodev
mount -t sysfs sys /sys -o nosuid,noexec,nodev
mount -t tmpfs run /run -o mode=0755,nosuid,nodev
mount -t devtmpfs dev /dev -o mode=0755,nosuid
mkdir -p /dev/pts /dev/shm
mount -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec
mount -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev
mount -t tmpfs tmpfs /run
if [[ -f /etc/hostname ]]; then
cat /etc/hostname > /proc/sys/kernel/hostname
fi
/sbin/mdev -s
mdev -s
echo /sbin/mdev > /proc/sys/kernel/hotplug
/bin/ip link set up dev lo
ip link set up dev lo
/usr/bin/mount -a
/usr/bin/mount -o remount,rw /
mount -a
mount -o remount,rw /
loadkmap < /usr/share/keymaps/be-latin1.bmap