码迷,mamicode.com
首页 > 系统相关 > 详细

Mini Linux Scripts

时间:2016-04-06 00:43:39      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:hardware   linux   export   


#/bin/sh

#

echo "mounting proc and sys..."

mount -t proc proc /proc

mount -t sysfs sysfs /sys


echo "Load ext3 module..."

insmod /lib/modules/jbd.ko

insmod /lib/modules/ext3.ko


echo "Detect and export hardware infomation..."

mdev -s


echo "Mount real rootfs to /mnt/sysroot..."

mount -t ext3 /dev/hda2 /mnt/sysroot


echo "Switch to read rootfs ..."

exec switch_root /mnt/sysroot /sbin/init 




#!/bin/sh

#

echo -e "\tWelcome to \033[34mMageEdu Tiny\033[0m Linux"


echo "mount proc and sys..."

mount -t proc proc /proc

mount -t sysfs sysfs /sys


echo "Remount the rootfs..."

mount -t ext3 -o remount,rw /dev/hda2 /


echo "Detect and export hardward infomation...."

mdev -s


echo "Mount the other filesystem..."

mount -a






本文出自 “江湖笑笑生” 博客,请务必保留此出处http://hashlinux.blog.51cto.com/9647696/1760691

Mini Linux Scripts

标签:hardware   linux   export   

原文地址:http://hashlinux.blog.51cto.com/9647696/1760691

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!