Warn about sulogin timeout and then continue as normal, Gentoo #240383

This commit is contained in:
Roy Marples 2008-10-09 16:34:21 +00:00
parent c4e673edbc
commit 1a88a43aa5

View File

@ -102,14 +102,16 @@ if [ "${RC_UNAME}" = "Linux" ]; then
do_unmount "mount -n -o remount,ro" \ do_unmount "mount -n -o remount,ro" \
--skip-point-regex "${no_umounts_r}" \ --skip-point-regex "${no_umounts_r}" \
${fs:+--skip-fstype-regex} ${fs} --nonetdev ${fs:+--skip-fstype-regex} ${fs} --nonetdev
unmounted=$?
eoutdent eoutdent
eend ${unmounted} eend $?
unmounted=$?
fi fi
if [ ${unmounted} -ne 0 ]; then if [ ${unmounted} -ne 0 ]; then
[ -x /sbin/sulogin ] && sulogin -t 10 /dev/console if [ -x /sbin/sulogin ]; then
exit 1 ewarn "$1 timeout in 30 seconds"
sulogin -t 30 /dev/console
fi
fi fi
# Load the final script - not needed on BSD so they should not exist # Load the final script - not needed on BSD so they should not exist