On Tue, Aug 05, 2003 at 02:12:36PM -0400, Grigsby, Garl wrote: > 1) I am currently using a Dell Latitude CPi that has a modular bay in > front that can hold either a second battery, a floppy drive, or a > cdrom drive. How do I hot swap the cdrom in and out and have the > system see it? I know that the hardware is capable of doing this > because I can do it under windows, but for the life of me, I cannot > get Linux to do it. I guess I would like to know how to be able to do > the same thing with a docking station. (i.e. suspend the system and > undock and have Linux be aware of the change and survive). Depends on the kernel version, what you have compiled in to it (hotswap support) and the procedure. I have not gotten this to hot swap on my laptops, however I know have read that a thinkpad can do it via warm swapping (suspend, swap, resume). Try that.
> 2) Is there any way to define a hardware profile for the system where > it will recognize that a specific set of hardware is installed (e.g. > docked with cd drive install, docked with cd and floppy drive, > undocked no cdrom drive, etc) and self configure based on this? On another of my laptops I have cd support and floppy support in the kernel. When I switch, I just plug the thing in and reboot. If the cd drive is there the bios recognizes it and then the kernel recognizes it. If the floppy drive is there, then both recognize that. No magic, just a reboot. Missing devices are disabled. > 3) Does anybody know how of an existing method to determine what > services start based on your configuration (i.e. networked connected > or no network connected). At present ypbind starts all the time and > fails if there is no network, which does not take much time, but it is > annoying. There is also no reason to have autofs, apache, samba load > if there is not network. I would also like to be able to assign an IP > address to my system if the network is not connected so that Gnome > works correctly (it does not like not having an IP address). Modify your startup scripts. Write your own that does network detection. Then that script starts up network dependent services like apache. How to detect? Look at intuitively (which I didn't particularly like) http://www.samfundet.no/~tfheen/intuitively.html For my I am almost always on a network were I can get a dhcp address. So I have a script called by apmd_proxy that requests a dhcp address on startup. If I get one it then checks to see what network I'm on. If I'm on a private lan it disables my ipsec vpn. If I'm on a public lan, it loads the vpn and connects. When I'm not on a dhcp network, or not plugged in the dhcp client just uses the previous address it was configured with (since I rarely reboot, it was just sleeping). Cory -- Cory Petkovsek Adapting Information Adaptable IT Consulting Technology to your (541) 914-8417 business [EMAIL PROTECTED] www.AdaptableIT.com _______________________________________________ EuG-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
