mr_bones_ 15/05/17 19:00:33 Modified: joystick-1.4.8-udev.patch Log: fix my udev patch with updates from Piotr Chmura (Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path 1.2 games-util/joystick/files/joystick-1.4.8-udev.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/joystick/files/joystick-1.4.8-udev.patch?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/joystick/files/joystick-1.4.8-udev.patch?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/joystick/files/joystick-1.4.8-udev.patch?r1=1.1&r2=1.2 Index: joystick-1.4.8-udev.patch =================================================================== RCS file: /var/cvsroot/gentoo-x86/games-util/joystick/files/joystick-1.4.8-udev.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- joystick-1.4.8-udev.patch 16 May 2015 06:04:45 -0000 1.1 +++ joystick-1.4.8-udev.patch 17 May 2015 19:00:33 -0000 1.2 @@ -9,7 +9,7 @@ - echo Restoring joystick configuration requires udev! >&2 +for f in /sbin/udevadm /bin/udevadm ; +do -+ [ -x $f ] && UDEV=$f ++ [ -x $f ] && UDEVADM=$f +done + +if [ -z "$UDEVADM" ] ; then @@ -22,7 +22,7 @@ IFS=$'\x0A' -for ATTRIBUTE in $( /sbin/udevadm info -a -n $1 | @@PREFIX@@/share/joystick/ident ); do -+for ATTRIBUTE in $( ${UDEVADM} -a -n $1 | @@PREFIX@@/share/joystick/ident ); do ++for ATTRIBUTE in $( ${UDEVADM} info -a -n $1 | @@PREFIX@@/share/joystick/ident ); do ID=$( echo "$ATTRIBUTE" | cut -f 1 -d = ) VALUE=$( echo "$ATTRIBUTE" | cut -f 2 -d \" ) case $ID in @@ -35,7 +35,7 @@ fi +for f in /sbin/udevadm /bin/udevadm ; +do -+ [ -x $f ] && UDEV=$f ++ [ -x $f ] && UDEVADM=$f +done -if [ ! -x /sbin/udevadm ]; then
