From: Dave Young Date: Wed, 15 Feb 2012 06:40:24 +0000 (+0800) Subject: ssh-client module install fix X-Git-Tag: 017~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86de902e35a7c57ecc008ba725b7842e36bf7393;p=thirdparty%2Fdracut.git ssh-client module install fix commit 38164332e198f7cc8f339b42d555796918de04b3 try to disallow ssh-client install for without proper options. But ssh-client will fail installation with --sshkey for publickey mode Fix it by refusing to install only when both --ctty and --sshkey are not added in options. Signed-off-by: Dave Young --- diff --git a/modules.d/95ssh-client/module-setup.sh b/modules.d/95ssh-client/module-setup.sh index 4410e4e78..8d62b2dd1 100755 --- a/modules.d/95ssh-client/module-setup.sh +++ b/modules.d/95ssh-client/module-setup.sh @@ -50,8 +50,8 @@ inst_sshenv() } install() { - [[ ! $cttyhack = yes ]] && { - derror "ssh interactive mode needs option --ctty!" + [[ ! $cttyhack = yes && ! $sshkey ]] && { + derror "ssh-client needs option --ctty or --sshkey!" return 1 }