~ubuntu-branches/ubuntu/natty/ubuntu-netbook-default-settings/natty

1 by Steve Kowalik
* Rename package from ubuntu-netbook-remix-default-settings to
1
#!/bin/sh
2
set -e
3
35 by Didier Roche
* debian/postinst, debian/triggers:
4
signal_daemons()
5
{
6
    # Tell all running daemons to reload their databases
7
    kill -s HUP `pidof gconfd-2` >/dev/null 2>&1 || true
8
}
9
1 by Steve Kowalik
* Rename package from ubuntu-netbook-remix-default-settings to
10
case "$1" in
11
  configure|upgrade)
12
    if [ -x /usr/lib/gdm/gdm-set-default-session ] ; then
13
        /usr/lib/gdm/gdm-set-default-session --keep-old une || true
14
    fi
15
    if which update-gconf-defaults >/dev/null 2>&1 ; then
16
        mkdir -p /var/lib/gconf/une.mandatory
10 by Didier Roche
* divide UNE specificate values into mandatory and defaults:
17
        mkdir -p /var/lib/gconf/une.default
1 by Steve Kowalik
* Rename package from ubuntu-netbook-remix-default-settings to
18
    fi
35 by Didier Roche
* debian/postinst, debian/triggers:
19
  ;;
20
  triggered)
21
    for trigger in $2; do
22
      case $trigger in
23
        /usr/share/gconf/une/mandatory)
24
          update-gconf-defaults --source /usr/share/gconf/une/mandatory \
25
          --destination /var/lib/gconf/une.mandatory --no-signal
26
        ;;
27
        /usr/share/gconf/une/default)
28
          update-gconf-defaults --source /usr/share/gconf/une/default \
29
          --destination /var/lib/gconf/une.default --no-signal
30
        ;;
31
      esac
32
    done
33
    signal_daemons
34
    exit 0
35
  ;;
1 by Steve Kowalik
* Rename package from ubuntu-netbook-remix-default-settings to
36
esac
37
51 by Ken VanDine
releasing version 0.8.9
38
# Remove the work around for bug (LP: #638808) which was added in 0.8.6
39
dpkg-maintscript-helper rm_conffile  \
40
  /etc/X11/Xsession.d/80clutter_vblank_none "0.8.7" -- "$@"
41
56 by Didier Roche
* debian/rules:
42
1 by Steve Kowalik
* Rename package from ubuntu-netbook-remix-default-settings to
43
#DEBHELPER#
35 by Didier Roche
* debian/postinst, debian/triggers:
44
56 by Didier Roche
* debian/rules:
45
# remove conffiles for !armel as well as gconf values
46
ARCH=`dpkg --print-architecture`
47
if [ "${ARCH}" != "armel" ]; then
48
    dpkg-maintscript-helper rm_conffile  \
49
       /etc/xdg/xdg-une/menus/applications.menu "0.8.11" -- "$@"
50
    dpkg-maintscript-helper rm_conffile  \
51
       /etc/xdg/xdg-une/menus/settings.menu "0.8.11" -- "$@"
52
    rm -rf /var/lib/gconf/une.*
53
else
54
35 by Didier Roche
* debian/postinst, debian/triggers:
55
# Upon installation/upgrade, regenerate all databases, because in this case 
56
# there will be no trigger run
56 by Didier Roche
* debian/rules:
57
    update-gconf-defaults --source /usr/share/gconf/une/mandatory \
58
                          --destination /var/lib/gconf/une.mandatory --no-signal
59
    update-gconf-defaults --source /usr/share/gconf/une/default \
60
                          --destination /var/lib/gconf/une.default --no-signal
61
    signal_daemons
35 by Didier Roche
* debian/postinst, debian/triggers:
62
56 by Didier Roche
* debian/rules:
63
fi