X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=contrib%2Fpm-utils%2F40autorandr;fp=contrib%2Fpm-utils%2F40autorandr;h=4d59012515821c54d630eeda5987f4b5a9653361;hb=6cd92b657027423721a29dfe0c7080483cdfc81e;hp=f44739a609e2aa032ed868c584a773d48851c234;hpb=582290b6d53679ece8653f976b4daf1c709b757b;p=deb_pkgs%2Fautorandr.git diff --git a/contrib/pm-utils/40autorandr b/contrib/pm-utils/40autorandr index f44739a..4d59012 100755 --- a/contrib/pm-utils/40autorandr +++ b/contrib/pm-utils/40autorandr @@ -39,7 +39,7 @@ detect_display() done } -if grep -q systemd $(readlink -f $(awk '{print $1}' /proc/1/cmdline)) && [ "$2" = "udev" ]; then +if grep -q systemd /proc/1/comm && [ "$2" = "udev" ]; then exec /bin/systemctl start autorandr-resume.service fi