OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: ajaustin on December 29, 2003, 07:54:51 am

Title: default gateway lost after suspend with Kompany ROM on 5500
Post by: ajaustin on December 29, 2003, 07:54:51 am
I add a gateway manually with:
Code: [Select]
route add default gw 192.168.129.1but it is lost when the Z suspends.

I see than there is a HowTo on the Resume Event, but is there a simpler fix for the lost gateway?
Title: default gateway lost after suspend with Kompany ROM on 5500
Post by: ajaustin on December 30, 2003, 09:24:57 am
OK, so I looked at it a bit harder and found the answer and it was very simple really.  

http://zaurususergroup.com/modules.php?op=...=Resume%20Event (http://zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Resume%20Event)

Firstly, the Suspend/Resume Architecture for scripting is built into the tkcROM, so there is nothing needed to install there.

Then it is just a matter of copying and adapting one of the existing scripts in /etc/apm.d and adding the link to it in /etc/apm.d/resume.d.

One thing that might be useful to others is that I found it necessary to put a \"sleep 1\" before the \"route add\" command in order to make it work.