Am 30.05.2011 12:12, schrieb Harald Becker: > Hi Gilles! > >> I used a sample rc.d script that I found in the archives of this list, >> but the appliance has no /proc/sys/kernel/hotplug: >> >> Does it matter? Could someone tell me how to set things up correctly? > > Looks like your kernel has not enabled hotplug-ing. That way you are > able to use static device file creation in a more or less reliable way. > You are not forced to use mdev or any other way of dynamic device file > creation, if you carefully look at your kernel device lists and create > corresponding device files (different kernels/systems may use different > major/minor numbers). However you can use mdev (it is not wrong), but > you need to reseed your device file system manually whenever you change > the connected devices. > > On system startup do "mdev -s" for an initial device file system seed > and skip the hotplug initialization. After removing devices, just delete > the corresponding device files manually. After connecting new devices, > redo "mdev -s" to update your device file system. That works on several > of my x86 systems, including USB devices. > > >> start) echo "Starting mdev..."; >> echo /sbin/mdev > /proc/sys/kernel/hotplug; >> /sbin/mdev -s; >> ;; > > 1. Just comment out that hotplug setting line: > > # echo /sbin/mdev > /proc/sys/kernel/hotplug > > 2. Restart your system > > 3. Do "mdev -s" as root, after adding new devices to your system (may be > you can add this to scripts preparing new devices for usage, e.g. before > mount) > > ... than you shall be fine, at least on newer kernels with enabled sysfs.
here is a how to i found with google: http://www.bangmoney.org/presentations/hotplug/ Perhaps we can put out a warning .... start) echo "Starting mdev..."; if [ -w /proc/sys/kernel/hotplug ] then echo /sbin/mdev > /proc/sys/kernel/hotplug; else printf "no writeable /proc/sys/kernel/hotplug found \n" fi /sbin/mdev -s; ;; _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
