Skip to content

Commit 178ec92

Browse files
authored
Create DEBIAN_Display_IP_in_TTY
1 parent a7e783c commit 178ec92

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

DEBIAN_Display_IP_in_TTY

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
nano /etc/network/if-up.d/update-issue
2+
3+
#!/bin/sh
4+
PREFIX=$(uname -srvn)
5+
IPADDRS=$(hostname -I | tr " " "\n" | grep -v "^$" | sort -t . -k 1,1n | head -1 | tr "\n" " ")
6+
echo "$PREFIX\n\nIP: $IPADDRS\n" > /etc/issue
7+
8+
chmod +x /etc/network/if-up.d/update-issue

0 commit comments

Comments
 (0)