SVN: rc-scripts/trunk/rc.d/init.d/functions
arekm
arekm at pld-linux.org
Sun Jun 1 13:28:17 CEST 2008
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()
More information about the pld-cvs-commit
mailing list