5 |
source ${rc_functions} |
source ${rc_functions} |
6 |
|
|
7 |
# get mage version |
# get mage version |
8 |
MAGEVER="$(< /etc/mageversion)" |
if [[ -f /etc/os-release ]] |
9 |
|
then |
10 |
|
MAGEVER="$(read_os_release version_id)" |
11 |
|
elif [ -f /etc/mageversion ] |
12 |
|
then |
13 |
|
MAGEVER="$(< /etc/mageversion)" |
14 |
|
else |
15 |
|
MAGEVER="unkown" |
16 |
|
fi |
17 |
|
|
18 |
# source kernel config if exists |
# source kernel config if exists |
19 |
[ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel |
[ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel |
36 |
then |
then |
37 |
rc_echo |
rc_echo |
38 |
rc_echo -e "${COLGREEN}Starting ${COLBLUE}MAGELLAN (v${MAGEVER}) ${COLGREEN}Linux${COLDEFAULT}" |
rc_echo -e "${COLGREEN}Starting ${COLBLUE}MAGELLAN (v${MAGEVER}) ${COLGREEN}Linux${COLDEFAULT}" |
39 |
rc_echo "Copyright 2001-2011 Niels Rogalla; http://magellan-linux.net" |
rc_echo "Copyright 2001-2012 Niels Rogalla; http://magellan-linux.net" |
40 |
rc_echo |
rc_echo |
41 |
|
|
42 |
# mount proc filesystem, needed for bootsplash; |
# mount proc filesystem, needed for bootsplash; |
55 |
# mount sys file system before udev |
# mount sys file system before udev |
56 |
if [ -d /sys ] |
if [ -d /sys ] |
57 |
then |
then |
58 |
rc_print "Mounting sysfs file system ..." |
if [ ! -e /sys/kernel/notes ] |
59 |
mount -n -t sysfs sysfs /sys |
then |
60 |
evaluate_retval |
rc_print "Mounting sysfs file system ..." |
61 |
|
mount -n -t sysfs sysfs /sys |
62 |
|
evaluate_retval |
63 |
|
fi |
64 |
else |
else |
65 |
rc_echo -e ${COLORED}"Fatal: mountpoint /sys missing ..." |
rc_echo -e ${COLRED}"Fatal: mountpoint /sys missing ..." |
66 |
rc_echo -e ${COLYELLOW}"Please create the directory /sys (mkdir -p /sys)." |
rc_echo -e ${COLYELLOW}"Please create the directory /sys (mkdir -p /sys)." |
67 |
rc_echo -e ${COLYELLOW}"It's essential for a 2.6 kernel." |
rc_echo -e ${COLYELLOW}"It's essential for a 2.6 kernel." |
68 |
fi |
fi |