Standards in wvdial.conf (Linux only)

Tazz_Tux

Linux Guru
Joined
Jan 28, 2005
Messages
622
Hello Linux users,

I want to update the wvdial.conf file for all the HSDPA cards. I was just wondering on the naming that I should use for the wvdial command - what are the suggestions from the forum ?

Bear in mind that there are 5 cards/3 makes that are currently on the Vodacom network and who knows where it will end...

I also don't want to end up with extra long commands like:

wvdial novatel_version_4b_u740_a_in_the_top_slot_bottom_right_hand_corner

So - the floor is open - how do we name them cards ! :)
 

redarrow

Expert Member
Joined
Dec 30, 2005
Messages
2,411
Tazz_Tux said:
I know this is sad to bump a thread - but I really would like some input :)
Never saw the thread before - else I would've responded sooner ;)

I personally think it would be most "comfortable" if the only commands needed where something like "wvdial 3gonly" or "wvdial gprs" depending on which bearer the user wanted..

Have you thought about the possibility of creating a simple bash script which generates a wvdial.conf based on user selections? Very basic something like this:

Code:
#!/bin/bash

# Where to create the Conf file
CF="test.conf"

# Create static stuff
#  Whatever remains the same for all cards
echo "#wvdial.conf" > $CF

# Get user to choose a card
echo "Please Choose your card:"
echo
echo "1. Option Nozomi HSDPA"
echo "2. Novatel Merlin U740"
echo "3. Card XYZ"

read CARD

# Setup basic defaults
echo "[Dialer Defaults]" >> $CF
echo "Phone = *99***1#" >> $CF
echo "Username = username" >> $CF
echo "Password = password" >> $CF
echo "Stupid Mode = 1" >> $CF
echo "Dial Command = ATDT" >> $CF

# Add card specific info
case $CARD in
	1)
		echo "option nozomi conf here" >> $CF
		;;
	2)	
		echo "novatel merlin conf here" >> $CF
		;;
	3)
		echo "card xyz conf here" >> $CF
		;;
esac

You could even have it ask for more info such as what port to use etc.. :D
Of course all this might be overkill and make matters more complex than needed :rolleyes:

Back to earth... on the current system I would say that just use the product no. for each card i.e. "U740" or "U630" etc... not likely to get those mixed up ..

Hope this is usefull!
 

Tazz_Tux

Linux Guru
Joined
Jan 28, 2005
Messages
622
Good plan !!! I like that script idea - I have been going over that idea myself - a bit more than that - a full application that detects the card etc. Almost making VMC for Linux :) (tm) (C) etc ! :D

That way I can even make it update auto-magiclly the card stuff etc....this might be the start of something big !

Thanks for the input !!!

redarrow said:
Never saw the thread before - else I would've responded sooner ;)

I personally think it would be most "comfortable" if the only commands needed where something like "wvdial 3gonly" or "wvdial gprs" depending on which bearer the user wanted..

*snip*

Back to earth... on the current system I would say that just use the product no. for each card i.e. "U740" or "U630" etc... not likely to get those mixed up ..

Hope this is usefull!
 

ArminM

Well-Known Member
Joined
Apr 12, 2005
Messages
149
How about adding some iptables traffic accounting in there? :p
 

redarrow

Expert Member
Joined
Dec 30, 2005
Messages
2,411
Tazz_Tux said:
Good plan !!! I like that script idea - I have been going over that idea myself - a bit more than that - a full application that detects the card etc. Almost making VMC for Linux :) (tm) (C) etc ! :D
Great!

Lets start an avertising campaign:
Code:
Does VMC Dash translate into Crash?
Do something brash 'n toss it in the trash!
Your problems'll disappear in a flash!
When you use the Tazz_Tux Dash(tm)!
:D

Seriously though a (semi)automatic solution would be way cool! :D
 
Top