From 25d20d07292550e8701e33aa409e4947f3075ede Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 13 May 2019 10:42:52 -0400 Subject: [PATCH] dynamic ip and mail port updates --- brc | 27 +++++++++++++++------------ distro-end | 3 +++ dynamic-ip-update | 1 + mail-route | 4 ++-- mail-setup | 5 ++++- switch-mail-host | 5 ++--- vpn-mail-forward | 2 +- 7 files changed, 28 insertions(+), 19 deletions(-) diff --git a/brc b/brc index c243706..487ee8f 100644 --- a/brc +++ b/brc @@ -1087,25 +1087,19 @@ ipdrop() { s iptables -A INPUT -s $1 -j DROP } -jr() { journalctl "$@"; } - -net-dev-info() { - e "lspci -nnk|gr -iA2 net" - lspci -nnk|gr -iA2 net - hr - e "s lshw -C network" - hr - s lshw -C network - -} istext() { grep -Il "" "$@" &>/dev/null } +jfilter() { + grep -Evi -e "^(\S+\s+){4}(sudo|sshd|cron)\[\S*:" \ + -e "^(\S+\s+){4}systemd\[\S*: (starting|started) (btrfsmaintstop|dynamicipupdate|spamd dns bug fix cronjob|rss2email)\.*$" +} jtail() { - journalctl -n 10000 -f "$@" | grep -Evi "^(\S+\s+){4}(sudo|sshd|cron)" + journalctl -n 10000 -f "$@" | jfilter } +jr() { journalctl "$@" | jfilter | less ; } kff() { # keyboardio firmware flash pushd /a/bin/distro-setup/Arduino/Model01-Firmware @@ -1243,6 +1237,15 @@ mkdir() { command mkdir -p "$@"; } mo() { xset dpms force off; } # monitor off +net-dev-info() { + e "lspci -nnk|gr -iA2 net" + lspci -nnk|gr -iA2 net + hr + e "s lshw -C network" + hr + s lshw -C network + +} nopanic() { sudo tee -a /var/log/exim4/paniclog-archive >$f </etc/exim4/conf.d/main/000_local <