pkg://kdebase_2.2.2-14.9_mips.deb:6476868/postinst
info downloads
#! /bin/sh
# postinst script for kdebase
#
# see: dh_installdeb(1)
set -e
wm=kdebase
case "$1" in
configure)
if [ -x /usr/sbin/update-alternatives ]; then
update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/bin/kde2 40
fi
if [ ! -e /usr/share/wallpapers ]; then
mkdir /usr/share/wallpapers
fi
if test -x /usr/sbin/wm-menu-config; then wm-menu-config $wm on;fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installdocs
if [ "$1" = "configure" ]; then
if [ -d /usr/doc -a ! -e /usr/doc/kdebase -a -d /usr/share/doc/kdebase ]; then
ln -sf ../share/doc/kdebase /usr/doc/kdebase
fi
fi
# End automatically added section
# Automatically added by dh_installmenu
inst=/etc/menu-methods/kdebase
if [ -x /usr/bin/update-menus -a -f $inst ] ; then
chmod a+x $inst
update-menus
fi
# End automatically added section
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
exit 0