Line
Link Here
|
0 |
-- ../splashutils-gentoo-0.5.1/splash-functions.sh |
0 |
++ splash-functions.sh |
Lines 62-68
Link Here
|
62 |
local args=($@) |
62 |
local args=($@) |
63 |
|
63 |
|
64 |
if [[ ${event} == "rc_init" || ${event} == "rc_exit" ]]; then |
64 |
if [[ ${event} == "rc_init" || ${event} == "rc_exit" ]]; then |
65 |
args[${#args[*]}]="${RUNLEVEL}" |
65 |
args[${#args[*]}]="${SOFTLEVEL}" |
66 |
fi |
66 |
fi |
67 |
|
67 |
|
68 |
splash_profile "pre ${event} ${args[*]}" |
68 |
splash_profile "pre ${event} ${args[*]}" |
Lines 79-86
Link Here
|
79 |
svc_stopped) splash_svc "$1" "$2" "stop";; |
79 |
svc_stopped) splash_svc "$1" "$2" "stop";; |
80 |
svc_input_begin) splash_input_begin "$1";; |
80 |
svc_input_begin) splash_input_begin "$1";; |
81 |
svc_input_end) splash_input_end "$1";; |
81 |
svc_input_end) splash_input_end "$1";; |
82 |
rc_init) splash_init "$1" "${RUNLEVEL}";; |
82 |
rc_init) splash_init "$1";; |
83 |
rc_exit) splash_exit "${RUNLEVEL}";; |
83 |
rc_exit) splash_exit ;; |
84 |
critical) splash_verbose;; |
84 |
critical) splash_verbose;; |
85 |
esac |
85 |
esac |
86 |
|
86 |
|
Lines 197-203
Link Here
|
197 |
# Make sure the splash daemon is really dead (just in case the killall |
197 |
# Make sure the splash daemon is really dead (just in case the killall |
198 |
# in splash_cache_cleanup didn't get executed). This should fix Gentoo |
198 |
# in splash_cache_cleanup didn't get executed). This should fix Gentoo |
199 |
# bug #96697. |
199 |
# bug #96697. |
200 |
killall -9 splash_util.static >/dev/null 2>/dev/null |
200 |
start-stop-daemon --quiet --stop --exec "${spl_util}" --pidfile "${spl_pidfile}" |
|
|
201 |
rm -f "${spl_pidfile}" |
201 |
} |
202 |
} |
202 |
|
203 |
|
203 |
splash_start() { |
204 |
splash_start() { |
Lines 243-250
Link Here
|
243 |
umount ${spl_tmpdir} |
244 |
umount ${spl_tmpdir} |
244 |
fi |
245 |
fi |
245 |
|
246 |
|
246 |
# In the unlikely case that there's a splash daemon running -- kill it. |
247 |
start-stop-daemon --quiet --stop --exec "${spl_util}" --pidfile "${spl_pidfile}" |
247 |
killall -9 ${spl_util##*/} 2>/dev/null |
248 |
rm -f "${spl_pidfile}" |
248 |
|
249 |
|
249 |
# Prepare the communications FIFO |
250 |
# Prepare the communications FIFO |
250 |
mkfifo ${spl_fifo} |
251 |
mkfifo ${spl_fifo} |
Lines 522-529
Link Here
|
522 |
|
523 |
|
523 |
|
524 |
|
524 |
splash_cache_cleanup() { |
525 |
splash_cache_cleanup() { |
525 |
# FIXME: Make sure the splash daemon is dead. |
526 |
# Make sure the splash daemon is dead. |
526 |
killall -9 splash_util.static >/dev/null 2>/dev/null |
527 |
start-stop-daemon --quiet --stop --exec "${spl_util}" --pidfile "${spl_pidfile}" |
|
|
528 |
rm -f "${spl_pidfile}" |
527 |
|
529 |
|
528 |
# There's no point in saving all the data if we're running off a livecd. |
530 |
# There's no point in saving all the data if we're running off a livecd. |
529 |
if [[ -n "${CDBOOT}" ]]; then |
531 |
if [[ -n "${CDBOOT}" ]]; then |