diff options
Diffstat (limited to 'scripts/ver_linux')
| -rwxr-xr-x | scripts/ver_linux | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/ver_linux b/scripts/ver_linux index f839be33bcb4..ae426c2e6f2a 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux | |||
| @@ -171,8 +171,12 @@ awk '/[0-9]+([.]?[0-9]+)+/ && !/not found$/{ | |||
| 171 | substr($0,RSTART,RLENGTH)) | 171 | substr($0,RSTART,RLENGTH)) |
| 172 | }' | 172 | }' |
| 173 | 173 | ||
| 174 | iwconfig --version 2>&1 | awk \ | 174 | iwconfig --version 2>&1 | |
| 175 | '(NR==1 && ($3 == "version")) {print "wireless-tools ",$4}' | 175 | awk '/version/{ |
| 176 | match($0, /[0-9]+([.]?[0-9]+)+/) | ||
| 177 | printf("Wireless-tools\t\t%s\n", | ||
| 178 | substr($0,RSTART,RLENGTH)) | ||
| 179 | }' | ||
| 176 | 180 | ||
| 177 | if [ -e /proc/modules ]; then | 181 | if [ -e /proc/modules ]; then |
| 178 | X=`cat /proc/modules | sed -e "s/ .*$//"` | 182 | X=`cat /proc/modules | sed -e "s/ .*$//"` |
