X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fion3.postinst;fp=debian%2Fion3.postinst;h=00db80703556d134ddefd1fdfe577fc19132d019;hb=7329232cac0c56809d39244969208012890b9647;hp=0000000000000000000000000000000000000000;hpb=47dc530769853104b94aecd63d6b166d8c7957bc;p=ion3.git diff --git a/debian/ion3.postinst b/debian/ion3.postinst new file mode 100644 index 0000000..00db807 --- /dev/null +++ b/debian/ion3.postinst @@ -0,0 +1,33 @@ +#!/bin/sh +set -e + +if [ -h /etc/X11/ion3/draw.lua ]; then + rm -f /etc/X11/ion3/draw.lua +fi + +ln -s look_clean.lua /etc/X11/ion3/draw.lua + +update-alternatives --install /usr/bin/ion ion /usr/bin/ion3 29 \ + --slave /usr/share/man/man1/ion.1.gz ion.1.gz \ + /usr/share/man/man1/ion3.1.gz + +update-alternatives --install \ + /usr/bin/x-window-manager x-window-manager /usr/bin/ion3 49 \ + --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \ + /usr/share/man/man1/ion3.1.gz + +update-alternatives --install \ + /usr/bin/x-window-manager x-window-manager /usr/bin/pwm3 48 \ + --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \ + /usr/share/man/man1/pwm3.1.gz + +# i18n menu method +inst=/etc/menu-methods/ion3-i18n +if [ -f $inst ]; then + chmod a+x $inst +fi + +#DEBHELPER# + +# Remove the old now-renamed generated Debian menu +rm -f /var/lib/ion3/debian-menus.lua