Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 031c04b0ceac1cd9f6829bb48576e893 > scriptlet

system-setup-keyboard-0.8.6-3.fc14.i686.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
	# Disable and stop the units
	/bin/systemctl disable system-setup-keyboard.service >/dev/null 2>&1 || :
	/bin/systemctl stop system-setup-keyboard.service >/dev/null 2>&1 || :
fi

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
	# Enable (but donĀ“t start) the units by default
	/bin/systemctl enable system-setup-keyboard.service >/dev/null 2>&1 || :
fi

POSTUN

/bin/sh
if [ $1 -ge 1 ] ; then
	# On upgrade, reload init system configuration if we changed unit files
	/bin/systemctl daemon-reload >/dev/null 2>&1 || :
	# On upgrade, restart the daemon
	/bin/systemctl try-restart system-setup-keyboard.service >/dev/null 2>&1 || :
fi