POSTUN
/bin/sh
if [ "$1" -eq 0 ]; then
update-alternatives --remove icewm /usr/bin/icewm-light
fi
POSTTRANS
/bin/sh
if [ "$1" -eq 1 ]; then
if [ -e /usr/share/xsessions/07IceWM.desktop ]; then
rm -rf /usr/share/xsessions/07IceWM.desktop
fi
if [ -e /etc/X11/dm/Sessions/07IceWM.desktop ]; then
rm -rf /etc/X11/dm/Sessions/07IceWM.desktop
fi
update-alternatives \
--install /usr/bin/icewm icewm /usr/bin/icewm-light 10 \
--slave /usr/bin/icewm-session icewm-session /usr/bin/icewm-session-light \
--slave /usr/bin/icesh icesh /usr/bin/icesh-light \
--slave /usr/bin/icewmbg icewmbg /usr/bin/icewmbg-light \
--slave /usr/bin/icewmhint icewmhint /usr/bin/icewmhint-light
fi