From de71796ec6544630765462b2c0c339d45acc314a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 23 Sep 2008 14:28:51 -0400 Subject: Check that we're on a tty before trying to start a repair shell. (#463161) If netfs isn't running from a tty (say, from NetworkManager), the attempt to start a shell will fail, and we'll immediately fall through to rebooting. That isn't good. --- rc.d/init.d/netfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d') diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index c0ea8525..0a30f0e6 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -73,8 +73,8 @@ case "$1" in if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then /usr/bin/rhgb-client --details=yes >/dev/null 2>&1 fi - - failure "$STRING" +` ` failure "$STRING" +` ` tty >/dev/null 2>&1 || exit 1 echo echo echo $"*** An error occurred during the file system check." -- cgit v1.2.1