slitaz-base-files rev 306

/etc/profile: hide ifconfig errors in Boot Log when net device is not accessible
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 24 17:14:27 2016 +0300 (2016-05-24)
parents 1aeb659d01c4
children aba2d2cae702
files rootfs/etc/profile
line diff
     1.1 --- a/rootfs/etc/profile	Mon May 09 13:52:28 2016 +0300
     1.2 +++ b/rootfs/etc/profile	Tue May 24 17:14:27 2016 +0300
     1.3 @@ -47,7 +47,7 @@
     1.4  
     1.5  # Update X Terminal window title
     1.6  #
     1.7 -ip=$(ifconfig $(route -n|sed '$!d;s/.* //')|sed '/t a/!d;s/.*:\(.*\) B.*/\1/')
     1.8 +ip=$(ifconfig $(route -n 2>/dev/null | sed '$!d;s/.* //') 2>/dev/null | sed '/t a/!d;s/.*:\(.*\) B.*/\1/')
     1.9  case "$TERM" in
    1.10  	xterm*|rxvt*) echo -ne "\033]0;$(hostname) $(cat /etc/slitaz-release) $ip \007";;
    1.11  esac