PREUN
/bin/sh
if [ $1 = 0 ]; then
rm -rf /usr/share/firstboot/*.pyc
rm -rf /usr/share/firstboot/modules/*.pyc
fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable firstboot-graphical.service > /dev/null 2>&1 || :
/usr/bin/systemctl stop firstboot-graphical.service > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
if [ $1 -ne 2 -a ! -f /etc/sysconfig/firstboot ]; then
platform="$(arch)"
if [ "$platform" = "s390" -o "$platform" = "s390x" ]; then
echo "RUN_FIRSTBOOT=YES" > /etc/sysconfig/firstboot
else
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl preset firstboot-graphical.service >/dev/null 2>&1 || :
fi
fi
fi
POSTUN
/bin/sh
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/usr/bin/systemctl try-restart firstboot-graphical.service >/dev/null 2>&1 || :
fi
Triggers
firstboot <
1.117
/bin/sh
/usr/bin/systemd-sysv-convert --save firstboot > /dev/null 2>&1 ||:
/bin/systemctl enable firstboot-graphical.service > /dev/null 2>&1
/sbin/chkconfig --del firstboot > /dev/null 2>&1 || :
/bin/systemctl try-restart firstboot-graphical.service > /dev/null 2>&1 || :