Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > main > by-pkgid > 938c358be029bed6cff60a26190ec8c3 > scriptlet

gnome-panel-2.8.3-6mdk.i586.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 for SCHEMA in clock fish gnome-panel-screenshot panel-general panel-global panel-object panel-toplevel window-list workspace-switcher panel-compatibility; do
  gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/$SCHEMA.schemas > /dev/null
 done
fi

POSTIN

/bin/sh
laptop=false
if [ -e /proc/acpi/battery ]; then
 laptop=true
else
 if [ -f /proc/apm ]; then
  # Battery present if top bits are unset
  flag=$(cat /proc/apm | cut -d ' ' -f 6 | sed 's/0x\([0-9a-f]\)[0-9a-f]/\1/')
  if [ "$flag" == "0" ]; then
    laptop=true
  fi
 fi
fi

if [ -x /usr/bin/scrollkeeper-update ]; then /usr/bin/scrollkeeper-update -q || true ; fi
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --recursive-unset /apps/panel > /dev/null 2> /dev/null
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --recursive-unset /schemas/apps/panel > /dev/null 2> /dev/null

for SCHEMA in clock fish gnome-panel-screenshot panel-general panel-global panel-object panel-toplevel window-list workspace-switcher panel-compatibility; do
 gconftool-2 --makefile-install-rule /etc/gconf/schemas/$SCHEMA.schemas > /dev/null
done
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load /etc/gconf/schemas/panel-default-setup.entries > /dev/null
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load /etc/gconf/schemas/panel-default-setup.entries /apps/panel > /dev/null

if [ "$laptop" = "true" ]; then
  gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load /etc/gconf/schemas/panel-default-setup-battstat.entries > /dev/null
  gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load /etc/gconf/schemas/panel-default-setup-battstat.entries /apps/panel/applets/battstat_applet > /dev/null
fi

POSTUN

/bin/sh
if [ -x /usr/bin/scrollkeeper-update ]; then /usr/bin/scrollkeeper-update -q || true ; fi