mirror of
https://github.com/MichielDerhaeg/build-linux.git
synced 2025-09-03 05:02:36 +02:00
serial getty and correct rcS
This commit is contained in:
@@ -3,5 +3,6 @@
|
|||||||
tty1::respawn:/sbin/getty 38400 tty1
|
tty1::respawn:/sbin/getty 38400 tty1
|
||||||
tty2::respawn:/sbin/getty 38400 tty2
|
tty2::respawn:/sbin/getty 38400 tty2
|
||||||
tty3::respawn:/sbin/getty 38400 tty3
|
tty3::respawn:/sbin/getty 38400 tty3
|
||||||
|
::respawn:/sbin/getty -L ttyS0 9600 vt100
|
||||||
::ctrlaltdel:/bin/umount -a -r
|
::ctrlaltdel:/bin/umount -a -r
|
||||||
::shutdown:/usr/bin/umount -a -r
|
::shutdown:/usr/bin/umount -a -r
|
||||||
|
@@ -1,24 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# TODO options
|
mount -t proc proc /proc -o nosuid,noexec,nodev
|
||||||
/usr/bin/mount -t proc proc /proc
|
mount -t sysfs sys /sys -o nosuid,noexec,nodev
|
||||||
/usr/bin/mount -t sysfs sys /sys
|
mount -t tmpfs run /run -o mode=0755,nosuid,nodev
|
||||||
#/usr/bin/mount -t devtmpfs dev /dev
|
mount -t devtmpfs dev /dev -o mode=0755,nosuid
|
||||||
mkdir -p /dev/pts /dev/shm # TODO check if in filesystem
|
mkdir -p /dev/pts /dev/shm
|
||||||
/usr/bin/mount -t devpts devpts /dev/pts
|
mount -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec
|
||||||
/usr/bin/mount -t tmpfs tmpfs /dev/shm
|
mount -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev
|
||||||
/usr/bin/mount -t tmpfs tmpfs /run
|
mount -t tmpfs tmpfs /run
|
||||||
|
|
||||||
if [[ -f /etc/hostname ]]; then
|
if [[ -f /etc/hostname ]]; then
|
||||||
cat /etc/hostname > /proc/sys/kernel/hostname
|
cat /etc/hostname > /proc/sys/kernel/hostname
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/sbin/mdev -s
|
mdev -s
|
||||||
echo /sbin/mdev > /proc/sys/kernel/hotplug
|
echo /sbin/mdev > /proc/sys/kernel/hotplug
|
||||||
|
|
||||||
/bin/ip link set up dev lo
|
ip link set up dev lo
|
||||||
|
|
||||||
/usr/bin/mount -a
|
mount -a
|
||||||
/usr/bin/mount -o remount,rw /
|
mount -o remount,rw /
|
||||||
|
|
||||||
loadkmap < /usr/share/keymaps/be-latin1.bmap
|
loadkmap < /usr/share/keymaps/be-latin1.bmap
|
||||||
|
Reference in New Issue
Block a user