Use mdev to automatically generate the device node

来源:互联网 发布:linux 查询tcp连接数 编辑:程序博客网 时间:2024/06/06 08:37

in the init script, e.g: rc.local

cat etc/init.d/rcS 
#!/bin/sh 
 
 
mount -o sys /sys 
mount -o proc /proc 
 
 
echo "----------mount /sys as sysfs" 
mount -t tmpfs mdev /dev 
echo "----------Starting mdev......" 
echo /sbin/mdev > /proc/sys/kernel/hotplug 
mdev -s


原创粉丝点击