Author: arekm
Date: Sun Jun  1 13:28:17 2008
New Revision: 9785

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
Export ISATTY. Calling this test from inside of initlog() return true even if 
output still goes into terminal. By exporting we make sure that initial test 
result is used for entire run of the script. Fixes wrong 'DONE' string 
alignment when bringin up dhcp.

Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions      (original)
+++ rc-scripts/trunk/rc.d/init.d/functions      Sun Jun  1 13:28:17 2008
@@ -65,6 +65,7 @@
 # we need to know in functions if we were called from a terminal
 if [ -z "$ISATTY" ]; then
        [ -t ] && ISATTY=yes || ISATTY=no
+       export ISATTY
 fi
 
 is_yes()
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to