Skip to contentSkip to conversation

2.6.12-rc1-mm3 Fix ver_linux script for no udev utils.

PATCH Applied Steven Cole 2 participants 2 messages Mar 29, 2005 – Apr 8, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils.

Without the attached patch, the ver_linux script gives the following if udev utils are not present.

./scripts/ver_linux: line 90: udevinfo: command not found

The patch causes ver_linux to be silent in the case of no udevinfo command.

Steven
TSPA (Technical data or Software Publicly Available)

scripts/ver_linux renamed from scripts/ver_linux.orig +1 -1
@@ -87,7 +87,7 @@
 
 expr --v 2>&1 | awk 'NR==1{print "Sh-utils              ", $NF}'
 
-udevinfo -V | awk '{print "udev                  ", $3}'
+udevinfo -V 2>&1 | grep version | awk '{print "udev                  ", $3}'
 
 if [ -e /proc/modules ]; then
     X=`cat /proc/modules | sed -e "s/ .*$//"`
Applied
#1 lore raw
Quoted 10 lines · Steven Cole

Without the attached patch, the ver_linux script gives the following if udev utils are not present.

./scripts/ver_linux: line 90: udevinfo: command not found

The patch causes ver_linux to be silent in the case of no udevinfo command.

Steven
TSPA (Technical data or Software Publicly Available)

Applied, thanks.

greg k-h