Add Fedora 33 specific checks as a result of crypto policy changes

This commit is contained in:
Jakob Frantzvåg Karlsmoen 2021-02-02 22:24:52 +01:00 committed by Rien Maertens
parent ff10c3ddc4
commit 6bcee2b8f1
No known key found for this signature in database
GPG Key ID: AE66CE42F1AF9DEF

View File

@ -89,8 +89,24 @@ while [ $# -gt 0 ]; do
done
ssh_cmd() {
OS=""
VER=""
echo "[SSH]" "$@" >&2
ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "root@$remarkable" "$@"
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$NAME
VER=$VERSION_ID
fi
if [ "$OS" == "Fedora" ]; then
if [ "$VER" == "33" ]; then
ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "remarkable" "$@"
fi
else
ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "root@$remarkable" "$@"
fi
}
# SSH_CONNECTION is a variable on reMarkable => ssh '' instead of ssh ""