**** BEGIN LOGGING AT Fri Dec 07 02:59:57 2007 Dec 07 05:15:53 I am using my slug with unslung 6.8b and since I run from flash memory I wrote a script that mounts /var into a ramdisk. Where is the best place to call this script at bootup? Currently its working in /opt/etc/init.d/S05mkrdsk but i suspect there ere places to do this earlier in bootup sequence... which place are the bootup scripts located on unslung 6.8b? Dec 07 05:22:18 Sefram_: See the wiki for information on diversion scripts - that should give you the pointers you need to the real bootup scripts and the recommended way to intercept same. Dec 07 05:36:15 mwester: if i run it in /share/flash/data/unslung/rc.mkrdsk is it called with 'rc.mkrdsk start' and when system shuts down as 'rc.mkrdsk stop'? I do need those parameters for my script to know if it should mount /var as ramfs or update the old data vor.state on flash disk... Dec 07 05:40:55 The wiki should have that information. IIRC, there are no arguments passed into the script. Dec 07 05:42:12 Your mechanism must handle the case where there is no orderly shutdown of the device -- there really is no means to ensure that a script is executed at shutdown as the linksys firmware was designed to be stateless. Dec 07 05:48:08 mwester: Do you know what /usr/sbin/CheckPowerButton does? Dec 07 05:49:26 It checks the power button. Dec 07 05:49:27 :) Dec 07 05:49:58 It's a linksys binary; we have no source. It seems to monitor the power button, and starts a shutdown process. Dec 07 05:51:58 mwester: http://www.nslu2-linux.org/wiki/Info/BootSequencePage says there is /etc/rc.d/rc.halt and /etc/rc.d/rc.reboot. Maybe i can divert those to update the data on flash disk from the ramdisk before shutdown / reboot? Dec 07 05:52:59 Sefram_: Sure. But what will happen if the user pulls the power cord, or types "halt" or "reboot" -- and absolutely no scripts or shutdown process runs at all? Dec 07 05:55:36 mwester: well i cant handle that case, since the purpose of my script is to reduce writing. but it should occure very rarely i hope, and in those cases the logs are lost, and my script uses the data from the last successfull shutdown... Dec 07 05:58:09 In that case, go for it, and good luck. :) It's been my experience that moving /var and /dev to ramdisks to save a few writes to a flash disk is wrong-headed thinking, though. Dec 07 05:59:02 Your problem is RAM - not enough of it. A few writes here and there spread over a flash disk is not an issue -- even if it means the flash disk fails a few days earlier in a few years of use. Dec 07 06:00:07 They give the little 128MB flash drives away for free as give-aways at trade shows anymore! Dec 07 06:02:10 i remember, but i just cant sleep well knowing the stick is blinking... (yes i know tape it). And /var is not too big in normal use. When something goes wrong the logs could explode and i could ran into RAM probs, sure. but i want to try if this will happen. currently it mounts with maxsize=1 Dec 07 06:10:08 good evening all Dec 07 13:18:18 Hi, I will free up my memory! how can I do that? Dec 07 13:18:51 only 952 LEFT with debian, any suggestions? Dec 07 13:19:15 Hmmm I still wonder if I am skilled enough to upgrade the ram.... Dec 07 13:19:20 128 MB would rock Dec 07 13:19:39 no hardware upgrade, only making free space, Dec 07 13:19:41 sure Dec 07 13:19:41 Wasnt there a way to start the alternative Bootlaoder after the stock one? Dec 07 13:19:48 but, its to dangerous! Dec 07 13:20:10 what you mean? Dec 07 13:20:18 I dont want to flash the loader, but use the new RAM Dec 07 13:20:35 I heard of a way to start the modded loader after the default one Dec 07 13:20:39 oh, ok Dec 07 13:21:08 how can I see what daemon is active, for eventualy remove software? Dec 07 13:21:19 And regarding your problem. There was a wiki page on nslu2-linux.org Dec 07 13:21:29 I will have a look Dec 07 13:21:33 thx Dec 07 13:22:41 f Dec 07 13:24:28 http://www.nslu2-linux.org/wiki/HowTo/FreeMoreMemory this one, but there was even more Dec 07 13:24:40 thx Dec 07 13:26:10 np Dec 07 19:58:42 evning all **** ENDING LOGGING AT Sat Dec 08 02:59:57 2007