[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 756c77958c91f137e8ac50c4551625389e8d2ec7

Nico Golde nion at debian.org
Fri Mar 7 13:34:03 UTC 2008


The following commit has been merged in the master branch:
commit 756c77958c91f137e8ac50c4551625389e8d2ec7
Author: Nico Golde <nion at debian.org>
Date:   Fri Mar 7 14:34:17 2008 +0100

    do nothing on package removal

diff --git a/actions/vga-toggle.sh b/actions/vga-toggle.sh
old mode 100644
new mode 100755
index 5b01ab9..3c27927
--- a/actions/vga-toggle.sh
+++ b/actions/vga-toggle.sh
@@ -1,6 +1,8 @@
 #!/bin/sh
 
-set -x
+# do nothing if package is removed
+[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
+
 # return: 0 on disconnect, 1 on connected vga, 2 else
 getvga_status(){
     STATUS=$( xrandr -q | grep VGA | cut -d ' ' -f 2,3 )

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list