aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ver_linux
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ver_linux')
-rwxr-xr-xscripts/ver_linux8
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
174iwconfig --version 2>&1 | awk \ 174iwconfig --version 2>&1 |
175'(NR==1 && ($3 == "version")) {print "wireless-tools ",$4}' 175awk '/version/{
176 match($0, /[0-9]+([.]?[0-9]+)+/)
177 printf("Wireless-tools\t\t%s\n",
178 substr($0,RSTART,RLENGTH))
179}'
176 180
177if [ -e /proc/modules ]; then 181if [ -e /proc/modules ]; then
178 X=`cat /proc/modules | sed -e "s/ .*$//"` 182 X=`cat /proc/modules | sed -e "s/ .*$//"`