fragfutter;553236 Wrote: > you could also react to udev events. Not sure about devices that are > already connected on boot-time, but they should also emmit an event. Yes it works. Nowadays, /dev is empty (?) at boot, udevd is launched very early, scans for the devices and populates /dev/. Doing this it goes through the /etc/udev.d/ scripts, which you can modify. I did a few mods myself, one to mount an USB external drive always to the same place if it contains the music (works at boot or when hotplugging); one to give fixed, meaningful names to the usb ports on a machine -like "front panel, red plug"- and build on that to configure automounting/dismounting (with autofs).
Udev is indeed excellent stuff. Coded with emacs, no doubt. -- epoch1970 Daily dose delivered by: 2 SB Classic (fw 130), 1 SB Boom (fw 50) SqueezeCenter 7.3.4 (Debian 5.0) with plugins: ContextMenu, SaverSwitcher by Peter Watkins Server Power Control by Gordon Harris WeatherTime by Martin Rehfeld IRBlaster by Gwendesign (Felix) FindArt, CDplayer by bpa BBC iPlayer, SwitchPlayer by Triode PowerSave by Jason Holtzapple TrackStat by Erland Isaksson. ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=79161
_______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix