From 7b8ad9cd0d276da648bb41ffa9fb27f2b123e07f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 16 Dec 2008 09:56:01 -0500 Subject: Remove /.suspended as well on boot (#270861) --- rc.d/rc.sysinit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index df911805..65dc467f 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -230,8 +230,9 @@ init_crypto() { plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1 fi else - plymouth --hide-splash + [ -z "$key" ] && plymouth --hide-splash /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure + [ -z "$key" ] && plymouth --show-splash fi rc=$? if [ $rc -ne 0 ]; then @@ -741,7 +742,7 @@ fi # Clean out /. rm -f /fastboot /fsckoptions /forcefsck /.autofsck /forcequotacheck /halt \ - /poweroff &> /dev/null + /poweroff /.suspended &> /dev/null # Do we need (w|u)tmpx files? We don't set them up, but the sysadmin might... _NEED_XFILES= -- cgit v1.2.1