If someone told me this before I would not belive him, but look how simple it is (Kernel Trap: Linux: ndevfs - a "nano" devfs)
find /sys/block /sys/class -name dev -printf '%h\n' | while read d; do
n=${d//*\//}
i=$(<$d/dev)
mknod $n ${d:5:1} ${i/:/ }
done
... I really *have to* take a closer look at udev and hotplug ...
PS: Don't think I ever prefered devfs, I just can't belive how good the design is.
Няма коментари:
Публикуване на коментар