diff --git a/menhera.sh b/menhera.sh index e916401..1138888 100755 --- a/menhera.sh +++ b/menhera.sh @@ -12,15 +12,36 @@ NEWROOT="" # fix possible PATH problems export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +menhera::reset_sshd_config() { + cat > /etc/ssh/sshd_config <&2 + echo "ERROR: Cannot restart SSH server, init system not recoginzed" >&2 exit 1 fi } @@ -31,7 +52,7 @@ menhera::__compat_reload_init() { elif [ -x "$(command -v telinit)" ]; then telinit u else - echo "ERROR: Cannot re-exec init" >&2 + echo "ERROR: Cannot re-exec init, init system not recoginzed" >&2 exit 1 fi }