Get UMTS or HSDPA status from bash

Forum rules
Before you post please read how to get help
Level 1
Level 1
Posts: 1
Joined: Tue Apr 17, 2012 5:24 am

Get UMTS or HSDPA status from bash

Postby vikoadi » 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.

User avatar
Level 19
Level 19
Posts: 9647
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Get UMTS or HSDPA status from bash

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

Moved here by moderator

Level 16
Level 16
Posts: 6713
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: Get UMTS or HSDPA status from bash

Postby AlbertP » 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.

Return to “Scripts & Bash”

Who is online

Users browsing this forum: No registered users and 3 guests