diff --git a/sshdpw b/sshdpw index 2007b82..953489e 100755 --- a/sshdpw +++ b/sshdpw @@ -3,17 +3,17 @@ [ ! "$(id -u)" -eq 0 ] && echo "Run as superuser." && exit 1 case "${1}" in - "on"|"enable"|"unlock") + on|yes|enable|unlock) FROM=yes; TO=no; ;; - "off"|"disable"|"lock") + off|no|disable|lock) FROM=no; TO=yes; ;; - "toggle") + toggle) if grep -q '^PasswordAuthentication yes' /etc/ssh/sshd_config; then - FROM=yes; TO=no; + FROM=yes; TO=no else - FROM=no; TO=yes; + FROM=no; TO=yes fi ;; status)