summaryrefslogtreecommitdiff
path: root/scripts/ver_linux
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ver_linux')
-rwxr-xr-xscripts/ver_linux7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/ver_linux b/scripts/ver_linux
index 1c6ec2244ae8..f839be33bcb4 100755
--- a/scripts/ver_linux
+++ b/scripts/ver_linux
@@ -164,7 +164,12 @@ awk '/^expr/{
substr($0,RSTART,RLENGTH))
}'
-udevinfo -V 2>&1 | grep version | awk '{print "udev ", $3}'
+udevadm --version 2>&1 |
+awk '/[0-9]+([.]?[0-9]+)+/ && !/not found$/{
+ match($0, /[0-9]+([.]?[0-9]+)+/)
+ printf("Udev\t\t\t%s\n",
+ substr($0,RSTART,RLENGTH))
+}'
iwconfig --version 2>&1 | awk \
'(NR==1 && ($3 == "version")) {print "wireless-tools ",$4}'