From: Stefan Tomanek Date: Sun, 16 Jan 2011 14:38:51 +0000 (+0100) Subject: skip sysfs fingerprinting on systems without drm X-Git-Tag: 1.0~175 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=dba8e83739c331962250b92187a5e6dbd07f1568;p=deb_pkgs%2Fautorandr.git skip sysfs fingerprinting on systems without drm --- diff --git a/autorandr b/autorandr index 6d1f91f..c603473 100755 --- a/autorandr +++ b/autorandr @@ -80,6 +80,8 @@ setup_fp_sysfs_edid() { $XRANDR -q > /dev/null # hash the EDIDs of all _connected_ devices for P in /sys/class/drm/card*-*/; do + # nothing found + [ ! -d "$P" ] && continue if grep -q "^connected$" < "${P}status"; then echo -n "$(basename "$P") " md5sum ${P}edid | awk '{print $1}'