Skip to content

Commit

Permalink
restore from main
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearran committed Sep 24, 2024
1 parent e66aa8b commit d28a1c4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/armbian-configng/config.ng.system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,11 @@ function toggle_ssh_lastlog() {
sudo service ssh restart
else
# If PrintLastLog is found, toggle between 'yes' and 'no'
sed -i '/^#\?PrintLastLog /
{
s/PrintLastLog yes/PrintLastLog no/;
t;
s/PrintLastLog no/PrintLastLog yes/
}' "${SDCARD}/etc/ssh/sshd_config"
sed -i '/^#\?PrintLastLog /{
s/PrintLastLog yes/PrintLastLog no/;
t;
s/PrintLastLog no/PrintLastLog yes/
}' "${SDCARD}/etc/ssh/sshd_config"
sudo service ssh restart
fi

Expand Down Expand Up @@ -282,4 +281,4 @@ function adjust_motd() {
# adjust motd config
sed -i "s/^MOTD_DISABLE=.*/MOTD_DISABLE=\"$INSERT\"/g" /etc/default/armbian-motd

}
}

0 comments on commit d28a1c4

Please sign in to comment.