summaryrefslogtreecommitdiffstats
path: root/abs/core/plymouth/plymouth.functions
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-11-29 18:39:06 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-11-29 18:39:06 (GMT)
commitd6516faa2bb58b90035609b16674cb86b75a7570 (patch)
tree288971230c879eef2009e70ef2c5c3a7cbb9aa76 /abs/core/plymouth/plymouth.functions
parentd4f87c26be94acfef50c606440fab2dd3f04c167 (diff)
downloadlinhes_pkgbuild-d6516faa2bb58b90035609b16674cb86b75a7570.zip
linhes_pkgbuild-d6516faa2bb58b90035609b16674cb86b75a7570.tar.gz
linhes_pkgbuild-d6516faa2bb58b90035609b16674cb86b75a7570.tar.bz2
update to 0.8.8.52.g37d2e40. refs #891
Diffstat (limited to 'abs/core/plymouth/plymouth.functions')
-rw-r--r--abs/core/plymouth/plymouth.functions68
1 files changed, 0 insertions, 68 deletions
diff --git a/abs/core/plymouth/plymouth.functions b/abs/core/plymouth/plymouth.functions
deleted file mode 100644
index cfaa19b..0000000
--- a/abs/core/plymouth/plymouth.functions
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/bash
-if [[ -x /usr/bin/plymouth && -x /usr/sbin/plymouthd ]]; then
-
- ply_client() { /usr/bin/plymouth --ping && /usr/bin/plymouth "$@"; }
- ply_daemon() { /usr/sbin/plymouthd "$@"; }
-
- # save a function under a new name
- save_function() {
- local ORIG=$(declare -f $1)
- eval "$2${ORIG#$1}"
- }
-
- save_function stat_busy std_stat_busy
- save_function stat_fail std_stat_fail
-
- # overwrite status functions
- stat_busy() {
- ply_client --update="$1"
- ply_client message --text="$1"
- std_stat_busy "$@"
- }
-
- stat_fail() {
- #JM remove client quitting
- #ply_client --quit
- std_stat_fail "$@"
- }
-
- # update after local filesystems are mounted
- ply_sysinit_postmount() { ply_client --sysinit; }
- add_hook sysinit_postmount ply_sysinit_postmount
-
- # stop plymouth after rc.multi
- ply_quit_boot() {
- ply_client quit --retain-splash
- }
- add_hook multi_end ply_quit_boot
-
- # stop plymouth before shutdown
- ply_quit_shutdown() {
- ply_quit_boot
- [[ $(ps h $(cat /tmp/plymouthd)) ]] && kill -9 $(cat /tmp/plymouthd)
- }
-# JM add_hook shutdown_poweroff ply_quit_shutdown
-
- # start plymouth at the beginning of rc.shutdown
- ply_shutdown_start(){
- XPID=`pidof X`
- if [ "$XPID" ]; then
- if [ "`runlevel | cut -c 3`" != '5' ]; then
- local DM
- for DM in slim gdm kdm xdm entrance; do
- ck_daemon "$DM" || stop_daemon "$DM"
- done
- fi
- kill -9 $XPID &> /dev/null
- fi
- ply_daemon --mode=shutdown --pid-file=/tmp/plymouthd
- ply_client --show-splash
-
- # don't get killed by kill_all
- add_omit_pids `cat /tmp/plymouthd`
- }
-#remove shutdown hook so plymouth doesn't start
-#JM add_hook shutdown_start ply_shutdown_start
-
-fi
-# vim: set ts=2 sw=2 ft=sh noet: