|
|
@ -21,17 +21,21 @@ emits desktop-session-start
|
|
|
|
emits desktop-shutdown
|
|
|
|
emits desktop-shutdown
|
|
|
|
|
|
|
|
|
|
|
|
script
|
|
|
|
script
|
|
|
|
[ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/opt/trinity/bin/tdm" ]
|
|
|
|
if [ -n "$UPSTART_EVENTS" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
# Check kernel command-line for inhibitors
|
|
|
|
[ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/opt/trinity/bin/tdm" ] || { stop; exit 0; }
|
|
|
|
for ARG in $(cat /proc/cmdline)
|
|
|
|
|
|
|
|
do
|
|
|
|
# Since we have no plymouth integration to take over the VT we simply
|
|
|
|
case "${ARG}" in
|
|
|
|
# quit plymouth all the time. Note that sleeping appears necessary
|
|
|
|
text|-s|s|S|single)
|
|
|
|
# as the VT freeing is somewhat delayed and TDM would otherwise go
|
|
|
|
|
|
|
|
# to configured KVT+1 (if plymouth was using it).
|
|
|
|
|
|
|
|
$(plymouth --quit && plymouth --wait && sleep 1) || :
|
|
|
|
|
|
|
|
if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
# Single-user mode
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
fi
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -r /etc/default/locale ]; then
|
|
|
|
if [ -r /etc/default/locale ]; then
|
|
|
|
. /etc/default/locale
|
|
|
|
. /etc/default/locale
|
|
|
|