core-system-scripts

Scripts submodule for the core-system repository
git clone https://ccx.te2000.cz/git/core-system-scripts
Log | Files | Refs

commit f9408ba17729394bc2ed1b5cc0bfda9c06d55210
parent 7d40230479b88ac12ce7eb9e51d27ce49f4e5975
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Tue, 26 Jul 2022 17:14:41 +0200

Fix appearance of MAC address

Diffstat:
Mcommand/issue-gen | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/command/issue-gen b/command/issue-gen @@ -4,7 +4,7 @@ exec >/etc/.new.issue.$$ printf '%s\n' '───┬───────────────────────────────────────────────────────────────────────' ip a | awk -v CSI=$'\033[' -v l=$'\033[0m│' ' /^[0-9]/ { iface = $2; sub(/:$/, "", iface) } -/link\/ether/ { printf "%s (%s)\n", CSI "33m" $2 l, iface } +/link\/ether/ { printf "%s (%s)\n", CSI "33mMAC" l $2, iface } / scope global/ { gsub(/^ */,CSI"36mNET"l); print } ' for f in /etc/ssh/ssh_host_*_key.pub(N); do