Magellan Linux

Diff of /branches/mage-next/src/mage.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2617 by niro, Tue Mar 4 15:31:43 2014 UTC revision 2620 by niro, Tue Mar 4 15:42:54 2014 UTC
# Line 2  Line 2 
2  # Magellan Linux Installer (mage.sh)  # Magellan Linux Installer (mage.sh)
3  # $Id$  # $Id$
4    
5  # include all needed files  # set default variables
6  [ -f /etc/mage.rc.global ] &&  \  : ${MAGERC="@@SYSCONFDIR@@/mage.rc"}
7   source /etc/mage.rc.global || \  : ${MLIBDIR="@@MAGELIBDIR@@"}
8   die "/etc/mage.rc.global missing"  
9    # first of all include common functions
10  [ -f ${MAGERC} ] && source ${MAGERC} || \  source ${MLIBDIR}/common.functions.sh
11   die "Your ${MAGERC} is missing. Aborting."  source @@SYSCONFDIR@@/mage.rc.global
12    source ${MAGERC}
13  [ -f ${MLIBDIR}/mage4.functions.sh ] && \  source ${MLIBDIR}/mage4.functions.sh
  source ${MLIBDIR}/mage4.functions.sh || \  
  die "mage functions missing"  
14    
15  # export default path  # export default path
16  export PATH="${PATH}:${MLIBDIR}"  export PATH="${PATH}:${MLIBDIR}"
# Line 30  if [ ! -e ${VIRTUALDB_DEFAULTS} ] && Line 28  if [ ! -e ${VIRTUALDB_DEFAULTS} ] &&
28  then  then
29   echo   echo
30   echo "Please choose an profile from the mage tree."   echo "Please choose an profile from the mage tree."
31   echo "ln -snf ${MAGEDIR}/profiles/profilename /etc/mage-profile"   echo "ln -snf ${MAGEDIR}/profiles/profilename @@SYSCONFDIR@@/mage-profile"
32   exit 1   exit 1
33  fi  fi
34    

Legend:
Removed from v.2617  
changed lines
  Added in v.2620