@ -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
else
FROM=no; TO=yes
fi
status)