# HG changeset patch # User Aleksej Bobylev # Date 1464099267 -10800 # Node ID 3a81f4c267f7e8200324df63c659f0c11dc91766 # Parent 1aeb659d01c4b9ae2a014eeb8508a2b7bc3dad79 /etc/profile: hide ifconfig errors in Boot Log when net device is not accessible diff -r 1aeb659d01c4 -r 3a81f4c267f7 rootfs/etc/profile --- a/rootfs/etc/profile Mon May 09 13:52:28 2016 +0300 +++ b/rootfs/etc/profile Tue May 24 17:14:27 2016 +0300 @@ -47,7 +47,7 @@ # Update X Terminal window title # -ip=$(ifconfig $(route -n|sed '$!d;s/.* //')|sed '/t a/!d;s/.*:\(.*\) B.*/\1/') +ip=$(ifconfig $(route -n 2>/dev/null | sed '$!d;s/.* //') 2>/dev/null | sed '/t a/!d;s/.*:\(.*\) B.*/\1/') case "$TERM" in xterm*|rxvt*) echo -ne "\033]0;$(hostname) $(cat /etc/slitaz-release) $ip \007";; esac