NFS test: re-add the fix for the terminal

When debugging, this is still needed as we won't be redirecting out
output to /dev/null or a file. However, we need to guard against not
having a terminal.
master
David Dillow 2009-06-06 01:13:47 -04:00
parent ba64a17ffd
commit d462f6dc65
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ run_server() {
-initrd initramfs.server -pidfile server.pid -daemonize || return 1
sudo chmod 644 server.pid || return 1

# Cleanup the terminal if we have one
tty -s && stty sane

echo Sleeping 10 seconds to give the server a head start
sleep 10
}