RE: How do I automate this?



Joris,

Thanks for the detailed explanation. Your steps were very clear and easy to
follow.

However, the script to start wvdial is not working for me. On bootup, almost
at the very end before it gives me a login prompt, I get a message:

/etc/init.d/rc: line 30: /etc/rc2.d/S20startwvdial: Permission Denied

Any idea why it is doing this?

Thanks,

Tyson Varosyan
Technical Manager, Uptime Technical Solutions LLC.
tyson@xxxxxxxxxxxx
www.up-times.com
206-715-TECH (8324)

UpTime/OnTime/AnyTime

-----Original Message-----
From: Joris Huizer [mailto:jorishuizer@xxxxxxxxx]
Sent: Sunday, January 08, 2006 6:16 AM
To: debian-user@xxxxxxxxxxxxxxxx
Cc: debian-user@xxxxxxxxxxxxxxxx
Subject: Re: How do I automate this?

Tyson Varosyan wrote:
> Could someone post a bit more of a step-by step for this? I am still very
> new to Linux...
>
> Thanks,
>
> Tyson Varosyan
> Technical Manager, Uptime Technical Solutions LLC.
> tyson@xxxxxxxxxxxx
> www.up-times.com
> 206-715-TECH (8324)
>
> UpTime/OnTime/AnyTime
>
> -----Original Message-----
> From: kamaraju kusumanchi [mailto:raju.mailinglists@xxxxxxxxx]
> Sent: Saturday, January 07, 2006 6:51 PM
> To: debian-user@xxxxxxxxxxxxxxxx
> Subject: Re: How do I automate this?
>
> Tyson Varosyan wrote:
>
>
>>I want my box to run these 2 commands as it boots - before anyone even
logs
>>in.
>>
>>I want the computer to run
>>
>> modprobe usbserial vendor=0xc88 product=0x17da maxSize=2048
>>
>>
>
> You can load modules with all the necessary options using modconf
> program (apt-get installable).
>
>
>>pause for about 3 seconds and then run
>>
>> wvdial verizon
>>
>>
>
> Not sure about the 3 seconds delay. Others might help you with this one.
> But I guess once you load the usbserial module with modconf, you can
> write a rcS.d script to run everytime the computer boots.
>
> hth
> raju
>

To install modconf:
apt-get install modconf
(don't know whether this is installed by default, but a try won't hurt)

then run:
modconf

You'll get a list of module types; search for something with
kernel/drivers/usb - you'll probably get a number of those
try to find something that also has 'serial' in it's name in that list
(don't know if there will be something like that)
otherwise, just go through the each of the usb items -- the goal is to
find 'usbserial'
once you find the usbserial - hit enter, and fill in the options (the
same as you use with modprobe)
hit enter again and it will tell you it's been setup; then you can exit
(escape exit's one menu each time)

to start the wvdial program, you can make a file like
/etc/init.d/startwvdial just containing the command to execute (wvdial
verizon)
this is not executed directly after the loading of the module; however,
if you want to ensure a delay of at least 3 seconds, you can do
sleep 3
which should do exactly that

(it is important that the file name is not the name of a debian package
to ensure it will not get overwritten)
then finaly, to make it start on runtime, you can do `update-rc.d -n
startwvdial defaults`, the -n only tells you what the program would do
-- if it just tells you it ads some links repeat without the -n :
update-rc.d startwvdial defaults

hope that helps

Joris


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: How do I automate this?
    ... Tyson Varosyan wrote: ... Technical Manager, Uptime Technical Solutions LLC. ... But I guess once you load the usbserial module with modconf, you can write a rcS.d script to run everytime the computer boots. ... to start the wvdial program, you can make a file like /etc/init.d/startwvdial just containing the command to execute ...
    (Debian-User)
  • esssolo1 in Compaq Presario 5330
    ... During startup this report appears on the screen. ... "* esssolo1 disabled in configuration" ... modconf does not install the esssolo1 driver ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • sb and 3c509 drivers in etch
    ... drivers sb and usb/audio will not install ... with modconf. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • modconf under 2.6.0-testn
    ... I have been unable to get modconf to work under 2.6.0-test2 or -test4. ... The program runs, but shows only the "exit" option, with no modules ... Has anyone else seen this sort of problem,and ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
    (Debian-User)