home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- set -e
-
- self="$(basename "$0")"
-
- action="$1"
-
- # Automatically added by dh_installmenu
- inst=/etc/menu-methods/gnome-panel-data
- if [ -f $inst ]; then
- chmod a+x $inst
- if [ -x "`which update-menus 2>/dev/null`" ]; then
- update-menus
- fi
- fi
- # End automatically added section
- # Automatically added by dh_scrollkeeper
- if [ "$1" = "configure" ] && which scrollkeeper-update >/dev/null 2>&1; then
- scrollkeeper-update -q >/dev/null 2>&1
- fi
- # End automatically added section
- # Automatically added by dh_gconf
- if [ "$1" = "configure" ]; then
- gconf-schemas --register panel-compatibility.schemas panel-global.schemas panel-general.schemas panel-toplevel.schemas panel-object.schemas clock.schemas fish.schemas workspace-switcher.schemas window-list.schemas
- fi
- # End automatically added section
- # Automatically added by dh_desktop
- if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
- update-desktop-database -q
- fi
- # End automatically added section
- # Automatically added by dh_iconcache
- touch -m /usr/share/icons/hicolor
- if [ "$1" = configure ] && \
- [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
- [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ] && \
- [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
- [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
- gtk-update-icon-cache -q /usr/share/icons/hicolor
- fi
- # End automatically added section
-
-
- case "$action" in
- configure)
- version="$2"
-
- if [ -n "$version" ] \
- && dpkg --compare-versions "$version" lt "2.16.2-0ubuntu1"; then
- config_source=$(gconftool-2 --get-default-source)
- tmp_dir=$(mktemp -t -d gconf.XXXXXXXXXX)
- HOME="$tmp_dir" gconftool-2 --direct \
- --config-source="$config_source" \
- --recursive-unset \
- /apps/panel/default_setup \
- >/dev/null
- kill -s HUP `pidof gconfd-2` >/dev/null 2>&1 || true
- rm -rf "$tmp_dir"
- fi
-
- if [ -x /usr/sbin/laptop-detect ] && /usr/sbin/laptop-detect; then
- echo "laptop configuration"
- cp /usr/share/gconf/schemas/panel-default-setup-laptop.entries /usr/share/gconf/defaults/05_panel-default-setup.entries
- else
- echo "desktop configuration"
- cp /usr/share/gconf/schemas/panel-default-setup.entries /usr/share/gconf/defaults/05_panel-default-setup.entries
- fi
-
- update-gconf-defaults
- ;;
- abort-upgrade|abort-remove|abort-remove|abort-deconfigure)
- ;;
- *)
- echo "$self: W: unknown action \`$action'" >&2
- ;;
- esac
-