Author Topic: default gateway lost after suspend with Kompany ROM on 5500  (Read 2146 times)

ajaustin

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://
default gateway lost after suspend with Kompany ROM on 5500
« 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?
UK SL5500 with tkcROM 2.0alpha3 - /home on SD, eXpansys (\"integral\" brand) 256MB SD card,
AmbiCom WL1100C-CF WiFi card, Blue Monkey LSE039 Bluetooth CF Card,
32MB SanDisk CF card to flash from.
Gentoo Linux 1.4 on my PCs.

ajaustin

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://
default gateway lost after suspend with Kompany ROM on 5500
« Reply #1 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

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.
UK SL5500 with tkcROM 2.0alpha3 - /home on SD, eXpansys (\"integral\" brand) 256MB SD card,
AmbiCom WL1100C-CF WiFi card, Blue Monkey LSE039 Bluetooth CF Card,
32MB SanDisk CF card to flash from.
Gentoo Linux 1.4 on my PCs.