From 1bbf603475231722e21f85750441ed18c0516403 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Sat, 30 Dec 2023 06:57:03 +0000 Subject: [PATCH] Core Update 183: Ship and restart OpenSSH MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- config/rootfiles/core/183/filelists/openssh | 1 + config/rootfiles/core/183/update.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 120000 config/rootfiles/core/183/filelists/openssh diff --git a/config/rootfiles/core/183/filelists/openssh b/config/rootfiles/core/183/filelists/openssh new file mode 120000 index 0000000000..d8c77fd8e7 --- /dev/null +++ b/config/rootfiles/core/183/filelists/openssh @@ -0,0 +1 @@ +../../../common/openssh \ No newline at end of file diff --git a/config/rootfiles/core/183/update.sh b/config/rootfiles/core/183/update.sh index 8eaab80c24..b5b10667bd 100644 --- a/config/rootfiles/core/183/update.sh +++ b/config/rootfiles/core/183/update.sh @@ -44,6 +44,7 @@ for (( i=1; i<=$core; i++ )); do done # Stop services +/etc/rc.d/init.d/sshd stop KVER="xxxKVERxxx" @@ -103,6 +104,9 @@ ldconfig /usr/local/bin/sshctrl # Start services +if grep -q "ENABLE_SSH=on" /var/ipfire/remote/settings; then + /etc/init.d/sshd start +fi # Rebuild initial ramdisks dracut --regenerate-all --force -- 2.39.5