We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7e783c commit 178ec92Copy full SHA for 178ec92
DEBIAN_Display_IP_in_TTY
@@ -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