[X2Go-Commits] [live-build-x2go] 38/38: no needs for loop, because it is ifup script + colorized interface names, MACs and link state

git-admin at x2go.org git-admin at x2go.org
Fri Apr 28 11:56:52 CEST 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/fvwm
in repository live-build-x2go.

commit aff1f086fd63c84df345b7b9fd081eb5e12ddc8c
Author: Juri Grabowski <gratuxri at gmail.com>
Date:   Fri Apr 28 11:55:36 2017 +0200

    no needs for loop, because it is ifup script + colorized interface names, MACs and link state
---
 config/includes.chroot/lib/live/config/2000-showifconfig | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2000-showifconfig b/config/includes.chroot/lib/live/config/2000-showifconfig
index 20896d4..ef23f88 100755
--- a/config/includes.chroot/lib/live/config/2000-showifconfig
+++ b/config/includes.chroot/lib/live/config/2000-showifconfig
@@ -16,20 +16,8 @@ cat >/etc/network/if-up.d/showips <<SHOWIPS
 #!/bin/bash
 export TERM=linux;
 
-while ! ip a | grep -v "inet 127.0.0.1" | grep -v "inet6 ::1/128" | grep -q inet ; do
-        sleep 2
-done
-
-IPMSG=\$(LANG=C \
-/sbin/ip a | \
-/bin/grep -P --color=always "inet.*? [\. 0-9a-f:/]*? |$" | \
-GREP_COLOR="1;32" \
-/bin/grep -P --color=always "link/ether .*? |$" ); \
-IPMSG=\$( sed 's/^/- /' <<< "\$IPMSG" ); 
-sed -i '/^- /d' /etc/issue; 
-sed -i '/^- /d' /etc/issue.net; 
-echo "\$IPMSG" >> /etc/issue; 
-echo "\$IPMSG" >> /etc/issue.net 
+ip -c a >> /etc/issue; 
+ip -c a >> /etc/issue.net 
 SHOWIPS
 
 chmod 755 /etc/network/if-up.d/showips

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list