aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>2001-08-29 01:47:08 +0000
committerMichael K. Johnson <johnsonm@redhat.com>2001-08-29 01:47:08 +0000
commit94086d968b6910eea654cb5ed674ae36e87ecce7 (patch)
tree7696c1d9d0c4adadb55fad75c2e5038c1b30df75 /rc.d
parentad64d6ea0c1c7b016a029986364edb129b49c196 (diff)
downloadinitscripts-94086d968b6910eea654cb5ed674ae36e87ecce7.tar
initscripts-94086d968b6910eea654cb5ed674ae36e87ecce7.tar.gz
initscripts-94086d968b6910eea654cb5ed674ae36e87ecce7.tar.bz2
initscripts-94086d968b6910eea654cb5ed674ae36e87ecce7.tar.xz
initscripts-94086d968b6910eea654cb5ed674ae36e87ecce7.zip
count down in C, not shellr6-30
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit19
1 files changed, 2 insertions, 17 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 537c2901..2a366b59 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -218,31 +218,16 @@ elif [ -f /.autofsck ]; then
fi
if [ "$PROMPT" != "no" ]; then
- (
- while [ "$AUTOFSCK_TIMEOUT" -gt 0 ]; do
- if [ "$AUTOFSCK_DEF_CHECK" = "yes" ] ; then
- echo -ne $"\rPress N within $AUTOFSCK_TIMEOUT seconds to not force filesystem check..."
- else
- echo -ne $"\rPress Y within $AUTOFSCK_TIMEOUT seconds to force filesystem check..."
- fi
- sleep 1
- AUTOFSCK_TIMEOUT=$(($AUTOFSCK_TIMEOUT-1))
- done
- kill -TERM `/sbin/pidof getkey` >/dev/null 2>&1
- ) &
if [ "$AUTOFSCK_DEF_CHECK" = "yes" ] ; then
- if /sbin/getkey n ; then
- kill %%
+ if /sbin/getkey -c $AUTOFSCK_TIMEOUT -m $"Press N within %d seconds to not force file system integrity check..." n ; then
AUTOFSCK_OPT=
fi
else
- if /sbin/getkey y ; then
- kill %%
+ if /sbin/getkey -c $AUTOFSCK_TIMEOUT -m $"Press Y within %d seconds to force file system integrity check..." y ; then
AUTOFSCK_OPT=-f
fi
fi
echo
- wait
else
# PROMPT not allowed
if [ "$AUTOFSCK_DEF_CHECK" = "yes" ] ; then