mdev automount questions

ralda at gmx.de ralda at gmx.de
Mon May 14 08:13:55 UTC 2012


> 1) The comments in /lib/mdev/usbdisk_link say
> # NOTE: since mdev -s only provide $MDEV, don't depend on any hotplug
> # vars.
> Can I use the lack of an ACTION var to assume that this call is from
> "mdev -s" (i.e. bootup), whereas if ACTION is present, assume that
> it's a hotplug

Yes, as far as I know (from brain, did not look in current sources).
 
> 2) Get info from /sys
> cat /sys/block/sda/removable
> 0

What do you want to ask with this?

--
Harald


More information about the busybox mailing list