diff options
| author | Yang Zhang <[email protected]> | 2023-07-26 17:20:04 +0800 |
|---|---|---|
| committer | Yang Zhang <[email protected]> | 2023-07-26 17:20:04 +0800 |
| commit | b46cd2b18e1d916023cc6a1c7d4effabf00b2d06 (patch) | |
| tree | dada17637006992a3f878781e910798f8a7c17c0 /script/init_debian | |
| parent | ba163ca89fa5cc34b12536d3f4b2b8692b6fff06 (diff) | |
init
Diffstat (limited to 'script/init_debian')
| -rw-r--r-- | script/init_debian | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/script/init_debian b/script/init_debian new file mode 100644 index 0000000..63aa7c7 --- /dev/null +++ b/script/init_debian @@ -0,0 +1,19 @@ +#!/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 |
