#!/bin/bash
#
# see: dh_installdeb(1)

set -e

case "$1" in
    configure)
    . /usr/share/stella-base-config/getID.sh

    if [ "$ID" = "22da" ]
    then
        sed -i -e 's/\(GRUB_CMDLINE_LINUX_DEFAULT="\)\(.*\)/\1acpi_backlight=vendor \2/g' /etc/default/grub
        update-grub
    fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

exit 0
