scripts/ifaces.sh
borekon 02449169b5 Disabled dokcer/kubernetes interfaces
Don't show the docker/kubernetes networks on the login screen
2023-01-27 07:03:33 +00:00

9 lines
240 B
Bash

#!/bin/bash
IFACE=$(ip -br l | grep enp | awk '$1 !~ "lo|vir|vet" { print $1}')
echo "" | sudo tee -a /etc/issue
for i in $IFACE;
do
#echo "$i"
echo "$i: \4{$i}" | sudo tee -a /etc/issue
done
echo "" | sudo tee -a /etc/issue