summaryrefslogtreecommitdiff
path: root/script/init_busybox
blob: cfb2461f6665b40226db8ec06046ec644c8477e0 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
# 挂载共享文件夹
mount -t 9p -o trans=virtio,version=9p2000.L test /root
mknod -m 666 /dev/ttyS0 c 4 64
echo -e "\nBoot took $(cut -d' ' -f1 /proc/uptime) seconds\n"
setsid cttyhack sh

exec /bin/sh