]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
NFS test: re-add the fix for the terminal
authorDavid Dillow <dave@thedillows.org>
Sat, 6 Jun 2009 05:13:47 +0000 (01:13 -0400)
committerDavid Dillow <dave@thedillows.org>
Sat, 6 Jun 2009 05:13:47 +0000 (01:13 -0400)
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.

test/TEST-20-NFS/test.sh

index e120f646f2fea6dd25e0e60b53e04f8ee43b71b3..580c4dfa70d953b251dcc86085ad04963718d34f 100755 (executable)
@@ -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
 }