diff --git a/linupx-scripts.sh b/linupx-scripts.sh index b007061..d1dc542 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -351,6 +351,16 @@ FW_INSTALL() { exit 0;; esac } +ENABLE_REMOTESYSLOG(){ + read -n 1 -p "Are you sure you wish to enable sending syslogs to ${RemoteSyslogServer} (Y/n)?" choice + case "$choice" in + [Nn]) SCRIPT_MENU;; + * ) + echo "" + echo -e "\n\n*.* @${RemoteSyslogServer}:514" >> /etc/rsyslog.d/50-default.conf + exit 0;; + esac +} SCRIPT_MENU() { if [ -f ${FOLDER}/lastrun ]; then @@ -423,6 +433,8 @@ SCRIPT_MENU() { 0) ENDISASU SCRIPT_MENU;; [Ii]) INSTALL_MENU;; + [Ll]) ENABLE_REMOTESYSLOG; + SCRIPT_MENU;; [Rr]) GO_REBOOT SCRIPT_MENU;; [Ss]) SHUTDOWN