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}" |
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 |
|
|