ssh-client: remove ctty related check
authordyoung@redhat.com <dyoung@redhat.com>
Thu, 11 Oct 2012 08:07:58 +0000 (16:07 +0800)
committerHarald Hoyer <harald@redhat.com>
Tue, 16 Oct 2012 07:38:17 +0000 (09:38 +0200)
cttyhack was removed and ctty is supported by default, so no need to
check it in ssh-client module any more.

Signed-off-by: Dave Young <dyoung@redhat.com>
modules.d/95ssh-client/module-setup.sh

index 5a38f8f..536c8d0 100755 (executable)
@@ -15,9 +15,6 @@ check() {
             derror "ssh key: $sshkey is not found!"
             return 1
         }
-        [[ ! $cttyhack = yes ]] && {
-            dinfo "--ctty is not used, you should make sure the machine is a knownhost and copy the sshkey to remote machine!"
-        }
     fi
 
     return 255
@@ -50,11 +47,6 @@ inst_sshenv()
 }
 
 install() {
-    [[ ! $cttyhack = yes && ! $sshkey ]] && {
-        derror "ssh-client needs option --ctty or --sshkey!"
-        return 1
-    }
-
     dracut_install ssh scp
     inst_sshenv
 }