📄 rcs
字号:
#!/bin/shLinux_string=X-Linuxecho "Init..."echo "$Linux_string: Mounting proc at /proc"/bin/mount -t proc proc /proc#echo "$Linux_string: Checking root filesystem"#/sbin/fsck -C -T -a /#retval=$?#if [ $retval -eq 2 ] || [ $retval -eq 3 ] ; then# echo "Filesystem repaired!"# echo "Rebooting."# /sbin/reboot -d1 #fiecho "$Linux_string: Mounting tmpfs filesystem"/bin/mount -t tmpfs tmpfs /dev/shm# replace the ramdisk with the tmpfs for /var and /tmpecho $Linux_string: Making /var and /tmp to bind the tmpfsmkdir -m 777 /dev/shm/tmp /dev/shm/varmount -o bind /dev/shm/tmp /tmpmount -o bind /dev/shm/var /varmkdir /var/run /var/log /var/lockecho "$Linux_string: Mounting devpts at /dev/pts"/bin/mount -t devpts devpts /dev/pts#echo $Linux_string: Remount root filesystem readable/writable#/bin/mount -o remount,rw //bin/hostname $Linux_stringecho $Linux_string: Bringing lo up/sbin/ifconfig lo 127.0.0.1 up 2>/dev/null/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 gw 127.0.0.1 dev lo 2>/dev/nullecho $Linux_string: Set IP=192.168.0.222ifconfig eth0 192.168.0.222 netmask 255.255.255.0#echo $Linux_string: Getting IP from DHCP server#udhcpc >/dev/null 2>&1echo $Linux_string: Starting inetd.../usr/sbin/inetd#echo $Linux_string: Starting httpd...#/sbin/httpd# if you want to use NFS client or server, uncomment following 2 lines.#echo $Linux_string: Starting portmap...#/sbin/portmap# if you want to enable NFS server daemon, uncoment following 2 lines.#echo $Linux_string: Starting NFS server...#/sbin/nfsdecho "$Linux_string: Mounting local filesystems"/bin/mount -a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -