On Wednesday 20 June 2007, Dallas Clement wrote: > Does anyone know of a way to determine the root device from which the > kernel has been booted? I've heard of a utility called "rdev" which > will do this. Just wondering if something like this is included in > busybox or if there is a way to determine this from files found in the > proc filesystem or something...
rdev works by comparing the major/minor from stat("/") to the major/minor of
the device nodes in /dev/
depending on what you want to do, /dev/root may also work
-mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
