home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- test -x /usr/sbin/vbetool || exit 0
- set -e
-
- . /lib/lsb/init-functions
-
- test -f /etc/default/rcS && . /etc/default/rcS
- test -f /etc/default/acpi-support && . /etc/default/acpi-support
- test -f /usr/share/acpi-support/device-funcs && . /usr/share/acpi-support/device-funcs
-
- case "$1" in
- start)
- if laptop-detect > /dev/null; then
- LAPTOP=true;
- fi
-
- if [ x$LAPTOP != xtrue ]; then
- exit 0;
- fi
-
- DeviceConfig
- log_begin_msg "Saving VESA state..."
- if [ "$SAVE_VBE_STATE" = "true" ]; then
- if [ "$VERBOSE" = no ]; then
- if ! vbetool vbestate save > $VBESTATE 2>/dev/null; then
- log_end_msg $?
- exit 1
- fi
- else
- if ! vbetool vbestate save > $VBESTATE ; then
- log_end_msg $?
- exit 1
- fi
- fi
- log_end_msg 0
- fi
- ;;
- *)
- exit 0
- ;;
- esac
-