Package: 915resolution
Version: 0.5.2-5
Severity: normal

We are having some trouble using the 915resolution package in our pre-installed ISO. Because the default configuration file has no XRESO and YRESO values, it causes apt-get to die when installed onto a system that doesn't have an Intel chipset, or a system on which the vbetool fails. This is ok when creating the ISO, but if the package happens to be upgraded or gets uninstalled and reinstalled on such a system the install fails when it tries to run the init script. We have made the changes below to solve these problems.

--- 915resolution/debian/init~    2006-11-11 07:00:05.000000000 -0800
+++ 915resolution/debian/init    2006-11-11 07:13:04.000000000 -0800
@@ -24,6 +24,11 @@
if [ -f /etc/default/915resolution ] ; then
    . /etc/default/915resolution
fi
+
+# In order to ship this program in an ISO it must exit harmlessly if
+# the chipset is inappropriate.
+$PROG -l || exit 0
+
if [ "$MODE" = auto -a \! -x "$VBETOOL" ] || [ "$MODE" != auto -a \( -z "$MODE" -o -z "$XRESO" -o -z "$YRESO" \) ] ; then
   echo "*** Your 915resolution hasn't been configured! ***"
   echo "Please read /usr/share/doc/915resolution/README.Debian and define"
@@ -37,7 +42,12 @@
    echo "*** Your 915resolution was not automatically configured! ***"
echo "Please read /usr/share/doc/915resolution/README.Debian then define" echo "MODE, XRESO, and YRESO manually in /etc/default/915resolution ."
-    exit 1
+    # The result of an error exit here is a failed apt-get install, which
+    # doesn't really buy us much.  We might as well choose a resolution
+    # and the user can use a display settings tool to change it later.
+    #exit 1
+    XRESO=1024
+    YRESO=768
    fi

    # If the native panel-size is already in the BIOS mode list, we



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to