From 3e32c0133f5cca6f6e92d1a5f8cf47640894bd03 Mon Sep 17 00:00:00 2001 From: borekon Date: Mon, 23 Jan 2023 07:54:41 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20'ifaces.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ifaces.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ifaces.sh diff --git a/ifaces.sh b/ifaces.sh new file mode 100644 index 0000000..32cb428 --- /dev/null +++ b/ifaces.sh @@ -0,0 +1,8 @@ +#!/bin/bash +IFACE=$(ip -br l | grep enp | awk '$1 !~ "lo|vir|wl" { print $1}') +sudo echo "" >> /etc/issue +for i in $IFACE; +do + #echo "$i" + sudo echo "$i: \4{$i}" >> /etc/issue +done \ No newline at end of file