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_debian
2023-11-29 16:02:23 +08:00

20 lines
405 B
Bash

#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
echo -e "\nBoot took $(cut -d' ' -f1 /proc/uptime) seconds\n"
mount -t devtmpfs none /dev
mount -t devpts none /dev/pts
/sbin/mdev -s
# Start the network interface
/sbin/ifconfig eth0 up
/sbin/dhclient eth0
# 挂载共享文件夹
mkdir -p /mnt/test
mount -t 9p -o trans=virtio,version=9p2000.L test /mnt/test
exec /sbin/init
exec /bin/bash