Thanks for this latest release!
I use the ver command regularly as I find a useful summary of the system. I notice you've updated it to provide more info, but there is a slight problem if you happen not to be using encaps0.
Code: Select all
# ver
Linux version 2.4.17_mvl21-malta-mips_fp_le (developers@RouterTech.Org) #43 Tue Jan 5 15:41:39 GMT 2010
BUILD=RouterTech_3.7.1B_1350A_20100105_2.92_AR7WRD_psbl
VERSION=1350A_20100105
BOARD=AR7WRD
FSSTAMP=20100105154547
Core logic version: 3.7.1B
Boot Loader: 1.4.0.4
ATM Driver version:[7.03.00.04]
DSL HAL version: [7.02.01.00]
DSP Datapump version: [7.02.03.00] Annex A
SAR HAL version: [01.07.2c]
PDSP Firmware version:[0.54]
Chipset ID: [Ohio250(7200/7100A2)]
Upstream rate (kbps): 851
Downstream rate (kbps): 3877
Trained Modulation: ADSL_2plus
Path Mode: Interleaved
System uptime: 0 hr 2 min - 0 day(s), 0 hour(s), 3 minute(s), and 16 second(s) (system 74% idle)
WAN uptime: error: error_code=-1, err_msg=There is no container 'encaps0'
Bandwidth usage:
Downloads : 0.0014 MB
Uploads : 0.0017 MB
Line attenuation:
DS Line Attenuation: 55 DS Margin: 9
US Line Attenuation: 31 US Margin: 5
Memory usage:
In active use : 73% of 14016 kb
Available : 27% (3892 kb) of 14016 kb
Connection information: connection1 mux1 encaps1 UKfsnCW 0:38 pppoa
I guess it's because the "-z" test in the script is looking for an empty $c2 string if encaps0 does not exist and should move onto 1 then 2.. However the strings isn't empty, it's literally the error message.
I tried playing with using cm_cli_tty instead which does appear to give an empty string, but it's error goes to the console too and of course can't be redirected! I'll leave it to a scripting expert for further suggestions for a fix!
Thanks.