ati-powermode.patch 854 B

1234567891011121314151617181920
  1. Index: work/common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh
  2. ===================================================================
  3. --- work.orig/common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh
  4. +++ work/common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh
  5. @@ -4,10 +4,12 @@
  6. # Control script for ACPI lid state and AC adapter state
  7. #
  8. +test -d /sys/module/fglrx || exit 0
  9. +
  10. getXuser() {
  11. - user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'`
  12. + user=`who | grep -m1 ":$displaynum " | awk '{print $1}'`
  13. if [ x"$user" = x"" ]; then
  14. - user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'`
  15. + user=`who | grep -m1 ":$displaynum" | awk '{print $1}'`
  16. fi
  17. if [ x"$user" != x"" ]; then
  18. userhome=`getent passwd $user | cut -d: -f6`