This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-variable-monitor/script/init_busybox
2023-11-29 16:02:23 +08:00

10 lines
265 B
Bash

#!/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