]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Fixed script name and typo in variable name.
authorMaciej Sitarz <macieksitarz@wp.pl>
Wed, 15 Feb 2012 19:53:13 +0000 (20:53 +0100)
committerStefan Tomanek <stefan.tomanek@wertarbyte.de>
Wed, 22 Feb 2012 21:54:31 +0000 (22:54 +0100)
Renamed according to pm-utils "SLEEP HOOK ORDERING CONVENTION"

pm-utils/40autorandr [new file with mode: 0755]
pm-utils/90autorandr [deleted file]

diff --git a/pm-utils/40autorandr b/pm-utils/40autorandr
new file mode 100755 (executable)
index 0000000..60ca9ae
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# 40autorandr: Change autorandr profile on thaw/resume
+
+AUTORANDR="autorandr -c"
+
+detect_display()
+{
+       for X in /tmp/.X11-unix/X*; do
+               D="${X##/tmp/.X11-unix/X}"
+               user=$(who | awk -vD="$D" '$5 ~ "\\(:"D"\\)$" {print $1}')
+               if [ x"$user" != x"" ]; then
+                       export DISPLAY=":$D"
+                       /bin/su -c "${AUTORANDR}" "$user"
+               fi
+       done
+}
+
+case "$1" in
+       thaw|resume)
+               detect_display
+               ;;
+esac
diff --git a/pm-utils/90autorandr b/pm-utils/90autorandr
deleted file mode 100755 (executable)
index 59992a8..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-#
-# 90autorandr: Change autorandr profile on thaw/resume
-
-AUTORANDR="autorandr -c"
-
-detect_display()
-{
-       for X in /tmp/.X11-unix/X*; do
-               D="${X##/tmp/.X11-unix/X}"
-               user=$(who | awk -vD="$D" '$5 ~ "\\(:"D"\\)$" {print $1}')
-               if [ x"$user" != x"" ]; then
-                       export DISPLAY=":$displaynum"
-                       /bin/su -c "${AUTORANDR}" "$user"
-               fi
-       done
-}
-
-case "$1" in
-       thaw|resume)
-               detect_display
-               ;;
-esac