Skip to content

Commit 345861e

Browse files
authored
Create DEB_update-issue
1 parent ebd3d39 commit 345861e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

DEB_update-issue

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# This will display ip address on TTY at login screen
3+
#
4+
# Create "update-issue" file in /etc/network/ip-up.d/
5+
#
6+
7+
#!/bin/sh
8+
PREFIX=$(uname -srvn)
9+
IPADDRS=$(hostname -I | tr " " "\n" | grep -v "^$" | sort -t . -k 1,1n | head -1 | tr "\n" " ")
10+
echo "$PREFIX\n\nIP: $IPADDRS\n" > /etc/issue

0 commit comments

Comments
 (0)