Author Topic: Starting Ppp From Command Line  (Read 1529 times)

zeigerpuppy

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Starting Ppp From Command Line
« on: April 18, 2007, 08:02:34 pm »
I have a query regarding using suspend/resume mechanism in pdaXrom.

How do I start a ppp connection from the command line instead of using the ppp dailer?
I am wanting the zaurus to connect automatically via my mobile phone when it resumes.

I now it's going to be a bit of a battery hog but it seems that I always connect when resuming anyway  
Zaurus C3100, CE-RH2, Socket lowpower CF Wifi, Socket CF Bluetooth
pdaXrom r198 - testing!, IceWM, Bluetooth modem: Sony Ericsson v600i with 3G.
see some howtos and tips at http://greenant.net/portal/greenant/wiki/Zaurus3100

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Starting Ppp From Command Line
« Reply #1 on: April 19, 2007, 04:52:22 am »
Quote
I have a query regarding using suspend/resume mechanism in pdaXrom.

How do I start a ppp connection from the command line instead of using the ppp dailer?
I am wanting the zaurus to connect automatically via my mobile phone when it resumes.

I now it's going to be a bit of a battery hog but it seems that I always connect when resuming anyway 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159249\"][{POST_SNAPBACK}][/a][/div]

you need to put the required commands into a script in the script directory
/etc/apm/scripts.d
Use /etc/apm/scripts.d/template as a template)

and then link that script into the directory
/etc/apm/resume.d
with a number as the prefix, which determines the order in which the lined scripts in resume.d are executed.
(Just like the rc scripts in /etc/rc.d/...)


daniel
« Last Edit: April 19, 2007, 04:53:36 am by daniel3000 »
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0