#!/bin/sh
#
# waimea postinst
#
# Shamelessly ripped off of Marcelo Magallon's script
# by Brent Fulgham <bfulgham@debian.org>
#
#
# Ripped off blackbox's postinst, by Matt Hope <dopey@debian.org>
# And ripped off once again by Jay Graves <jay@skabber.com>
#
set -e
WMentry="/usr/bin/waimea"
add_wm_entry ()
{
update-alternatives --install /usr/bin/x-window-manager x-window-manager $WMentry 50 \
--slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz /usr/share/man/man1/waimea.1.gz
}
case "$1" in
configure)
add_wm_entry
if [ -x /usr/sbin/wm-menu-config ]; then
wm-menu-config waimea on;
fi
;;
abort-*)
# how did we get here? Force a non-zero exit code
exit 1
;;
*)
;;
esac
#DEBHELPER#
syntax highlighted by Code2HTML, v. 0.9.1