What happens if there's no network connection when the scripts try to set the clock?
My scripts just call "sltime -set". Nothing at all to do with network time. This just stores the current date/time to the so-called "hardware" clock. These devices have no real hardware clock so when the device reboots the time is set to 1/1/1970. What happens in pdaXrom is that on bootup on of the startup scripts calls "sltime" with no parameters, thus restoring the time last set with a previous "sltime -set". Therefore I like to have it set fairly often and my scripts sets it hourly and before/after suspend/resume. This means timeloss due to a crash (which incidently does not happen much under rc8) is minimal.
I also have a script that calls ntpdate as in rc5, which works fine if there is no net connection, however I did not include that as I feel the ntpd package will probably do a better job.
You mention that apm is already wrapped (I take it this means that there's a script called apm that runs some commands, and then runs apm)...after installing your stuff, do the things in the previous wrapper still work?
pdaXrom renames the real apm to apm.x, and has a script that calls cardctl eject and insert before and after a suspend. My package just changes this so the wrapper will run a directory of scripts on each state (one of which handles the insert/eject of the old wrapper). For a normal user there is no advantage to the different wrapper, however it makes adding new items to it MUCH easier and my hotfix package makes use of it. I'm a firm believer of using directories of scripts ala run-parts.
What happens if you don't unmount smbfs shares before you suspend?
Its a real annoyance, and its actually to do with the timeout of samba. Unmounting just seems to help minimize the problem coming up. Say for instance you mount //server/work onto /mnt/work. If you lose network connectivity, like suspending, that mount remains. If you try to access the directory, the program accessing (say rox filer or a terminal) will hang whilst the smbfs tries to reconnect. However sometimes even though you resumed and are back on the network and it should be able to find the server, it gets stuck for AGES. And you can't even unmount it when its stuck since the now stuck application is locking the mount.
What's PS1? (I'm guessing it's the console that comes up when you first start the rom, before you get into x)
PS1 is an environtment variable that the shell uses as its primary promt. Normal pdaxrom jusr shows a #. I like to show the current directory, name of host, and have it in colour. Open aterm after applying the hotfix and see the difference.
What does .Xdefaults do?
This file contains "variables" that varous X programs use to configure themselves. In this case it sets some defaults for how aterm dispays itself.jerrybme
One minor point about .Xdefaults- To get some of the settings for aterm to work, you must remove the arguements in the /usr/share/applications/aterm.desktop that set geometery and fonts etc otherwise they will over-ride the .Xdefault settings.
Good point. I'll update the hotfix to backup and replace this file.