source: n4d-lliurexberry-server/trunk/fuentes/debian/postinst @ 4891

Last change on this file since 4891 was 4891, checked in by mabarracus, 2 years ago

Change berryterminal.ini options
set alternative x-session-manager to mate-session

File size: 1.3 KB
Line 
1#!/bin/sh
2#
3# see: dh_installdeb(1)
4
5set -e
6
7# summary of how this script can be called:
8#        * <postinst> `configure' <most-recently-configured-version>
9#        * <old-postinst> `abort-upgrade' <new version>
10#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
11#          <new-version>
12#        * <postinst> `abort-remove'
13#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
14#          <failed-install-package> <version> `removing'
15#          <conflicting-package> <version>
16# for details, see http://www.debian.org/doc/debian-policy/ or
17# the debian-policy package
18
19
20case "$1" in
21    configure)
22
23        n4d-modules enable-plugin /etc/n4d/conf.d/LtspBerryTerminal || true
24
25        update-inetd --group N4DBERRY --add "1020           stream  tcp     nowait  nobody /usr/sbin/tcpd /usr/sbin/ltsp-berryvars"
26       
27        if [ -f /usr/bin/mate-session ]; then
28            update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/bin/mate-session 80
29            update-alternatives --set x-session-manager /usr/bin/mate-session
30        fi
31        ;;
32
33
34
35    abort-upgrade|abort-remove|abort-deconfigure)
36    ;;
37
38    *)
39        echo "postinst called with unknown argument \`$1'" >&2
40        exit 1
41    ;;
42esac
43
44# dh_installdeb will replace this with shell code automatically
45# generated by other debhelper scripts.
46
47#DEBHELPER#
48
49exit 0
Note: See TracBrowser for help on using the repository browser.