PREUN
/bin/sh
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable olpc-dm.service > /dev/null 2>&1 || :
/usr/bin/systemctl stop olpc-dm.service > /dev/null 2>&1 || :
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable olpc-configure.service > /dev/null 2>&1 || :
/usr/bin/systemctl stop olpc-configure.service > /dev/null 2>&1 || :
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable olpc-boot-finish.service > /dev/null 2>&1 || :
/usr/bin/systemctl stop olpc-boot-finish.service > /dev/null 2>&1 || :
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable plymouth-shutdown-wait.service > /dev/null 2>&1 || :
/usr/bin/systemctl stop plymouth-shutdown-wait.service > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
rm -f /.olpc-configured # force re-configuration on upgrade
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset olpc-dm.service >/dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset olpc-configure.service >/dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset olpc-boot-finish.service >/dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset plymouth-shutdown-wait.service >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -eq 0 ] ; then
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &> /dev/null || :
fi
POSTTRANS
/bin/sh
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &> /dev/null || :