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@@"} |
|
die "/etc/mage.rc.global missing" |
|
8 |
|
|
9 |
[ -f ${MAGERC} ] && source ${MAGERC} || \ |
# first of all include common functions |
10 |
die "Your ${MAGERC} is missing. Aborting." |
source ${MLIBDIR}/common.functions.sh |
11 |
|
source @@SYSCONFDIR@@/mage.rc.global |
12 |
[ -f ${MLIBDIR}/mage4.functions.sh ] && \ |
source ${MAGERC} |
13 |
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}" |