1 |
#!/bin/sh |
#!/bin/sh |
2 |
# Magellan Linux Installer (mage.sh) |
# Magellan Linux Installer (mage.sh) |
3 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.2 2005-09-09 17:49:43 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.3 2005-09-09 17:52:55 niro Exp $ |
4 |
|
|
5 |
# default die function |
# default die function |
6 |
die() |
die() |
10 |
} |
} |
11 |
|
|
12 |
# include all needed files |
# include all needed files |
13 |
# [ -f ${MLIBDIR}/conf/mage.rc.global ] && \ |
[ -f ${MLIBDIR}/conf/mage.rc.global ] && \ |
14 |
# source ${MLIBDIR}/conf/mage.rc.global || \ |
source ${MLIBDIR}/conf/mage.rc.global || \ |
15 |
# die "${MLIBDIR}/conf/mage.rc.global missing" |
die "${MLIBDIR}/conf/mage.rc.global missing" |
16 |
# |
|
17 |
# [ -f /etc/mage.rc ] && source /etc/mage.rc || \ |
[ -f /etc/mage.rc ] && source /etc/mage.rc || \ |
18 |
# die "Your /etc/mage.rc is missing. Aborting." |
die "Your /etc/mage.rc is missing. Aborting." |
19 |
# |
|
20 |
# [ -f ${MLIBDIR}/mage.functions.sh ] && \ |
[ -f ${MLIBDIR}/mage.functions.sh ] && \ |
21 |
# source ${MLIBDIR}/mage.functions.sh || \ |
source ${MLIBDIR}/mage.functions.sh || \ |
22 |
# die "mage functions missing" |
die "mage functions missing" |
23 |
|
|
24 |
# for tests only |
# for tests only |
25 |
source /home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage/mage.rc.global |
#source /home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage/mage.rc.global |
26 |
source /etc/mage.rc |
#source /etc/mage.rc |
27 |
source /home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh |
#source /home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh |
28 |
MLIBDIR=/home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage |
#MLIBDIR=/home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage |
29 |
|
|
30 |
## only for tests -> normally in /etc/rc.d/init.d/functions |
## only for tests -> normally in /etc/rc.d/init.d/functions |
31 |
COLRED="\033[1;6m\033[31m" |
COLRED="\033[1;6m\033[31m" |