ssh-client: remove ctty related check

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>
master
dyoung@redhat.com 2012-10-11 16:07:58 +08:00 committed by Harald Hoyer
parent c62b94614d
commit fc9bc6f8db
1 changed files with 0 additions and 8 deletions

View File

@ -15,9 +15,6 @@ check() {
derror "ssh key: $sshkey is not found!" derror "ssh key: $sshkey is not found!"
return 1 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 fi


return 255 return 255
@ -50,11 +47,6 @@ inst_sshenv()
} }


install() { install() {
[[ ! $cttyhack = yes && ! $sshkey ]] && {
derror "ssh-client needs option --ctty or --sshkey!"
return 1
}

dracut_install ssh scp dracut_install ssh scp
inst_sshenv inst_sshenv
} }