]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
skip sysfs fingerprinting on systems without drm
authorStefan Tomanek <stefan.tomanek@wertarbyte.de>
Sun, 16 Jan 2011 14:38:51 +0000 (15:38 +0100)
committerStefan Tomanek <stefan.tomanek@wertarbyte.de>
Sun, 16 Jan 2011 14:38:51 +0000 (15:38 +0100)
autorandr

index 6d1f91f2fe08a349415c336a0b108d15a8f10882..c603473529ba788e8194664dd5ef0caf0954adb7 100755 (executable)
--- 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}'