This repository has been archived on 2024-03-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
adlin/initramfs-login/init
2018-02-23 20:30:29 +01:00

15 lines
234 B
Bash
Executable file

#!/bin/sh
mount -t proc proc /proc
mount -t sysfs sysfs /sys
echo 0 > /proc/sys/kernel/printk
busybox --install -s
mknod /dev/null c 1 3
mknod /dev/tty c 5 0
mdev -s
exec setsid sh -c 'exec sh /init2 </dev/tty1 >/dev/tty1 2>&1'