CVS: theedge/var/lib/lunar/functions init.lunar,1.4,1.5

elaine at lunar-linux.org elaine at lunar-linux.org
Wed Dec 10 16:52:21 GMT 2003


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv28580

Modified Files:
	init.lunar 
Log Message:
Working around the readonly variables sothat enviro_check won't complain
during iso/install


Index: init.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/init.lunar,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- init.lunar	29 Jul 2003 20:49:28 -0000	1.4
+++ init.lunar	10 Dec 2003 16:52:19 -0000	1.5
@@ -30,12 +30,14 @@
 # purpose  : check if the shell is proper
 enviro_check() {
   debug_msg "enviro_check ($@)"
+  if [ -z $LUNAR_INSTALL ]; then
   if [ -z "$SHELL" ] || [ "$USER" != "root" ] ; then
     message "${PROBLEM_COLOR}WARNING:${DEFAULT_COLOR}${MESSAGE_COLOR}" \
             "You are not running a fully initialized root shell, consider" 
     message "running a proper root shell with 'su -'" \
             "${DEFAULT_COLOR}"
   fi
+  fi
 }
 
 # function : root_check




More information about the Lunar-commits mailing list