POSTIN
/bin/sh
apm=false
if [ -f /proc/apm ]; then
mins=`cat /proc/apm|awk '{ print $8 }'`
if [ "$mins" != "-1" ]; then
apm=true
fi
fi
if [ "$apm" = "false" ]; then
ln -sf /etc/gconf/schemas/panel-per-panel-config-nolaptop.schemas /etc/gconf/schemas/panel-per-panel-config.schemas
else
ln -sf /etc/gconf/schemas/panel-per-panel-config-laptop.schemas /etc/gconf/schemas/panel-per-panel-config.schemas
fi
if [ -x /usr/bin/scrollkeeper-update ]; then /usr/bin/scrollkeeper-update -q || true ; fi
for SCHEMA in clock fish mailcheck pager panel-global-config panel-per-panel-config tasklist ; do
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule /etc/gconf/schemas/$SCHEMA.schemas > /dev/null
done
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
POSTUN
/bin/sh
if [ "$1" = "0" ]; then
rm -f /etc/gconf/schemas/panel-per-panel-config.schemas
fi
if [ -x /usr/bin/scrollkeeper-update ]; then /usr/bin/scrollkeeper-update -q || true ; fi
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi