Get UMTS or HSDPA status from bash

Forum rules
Before you post please read this

Get UMTS or HSDPA status from bash

Postby vikoadi on Sat Apr 21, 2012 10:46 pm

I want to create a bash script that will reconnect when my connection goes to UMTS instead of HSDPA
i have done some script that will reconnect with nmcli but i can't get my modem UMTS or HSDPA status to break the loop.

Can someone help me find the tool?
I'm sure its possible because i've seen HSDPA/UMTS status in xfce network manager.

other solution other than bash and nmcli are welcome

thanks in advance.
Level 1
Level 1
Posts: 1
Joined: Tue Apr 17, 2012 5:24 am

Linux Mint is funded by ads and donations.

Re: Get UMTS or HSDPA status from bash

Postby Oscar799 on Mon Apr 23, 2012 3:39 am

Moved here by moderator
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Level 18
Level 18
Posts: 8902
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Get UMTS or HSDPA status from bash

Postby AlbertP on Mon Apr 23, 2012 5:29 am

Does ifconfig in terminal show any difference? You can do ifconfig | grep if you want to use one line of the output.
Registered Linux User #528502
Feel free to correct me if I'm trying to write in Spanish, French or German.
Level 16
Level 16
Posts: 6520
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 1 guest