1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/rc,v 1.4 2005-03-15 19:07:56 niro Exp $ |
3 |
|
|
4 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
5 |
source $rc_functions |
source $rc_functions |
|
source /etc/mageversion |
|
6 |
|
|
7 |
|
# get mage version |
8 |
|
MAGEVER="$(< /etc/mageversion)" |
9 |
|
|
10 |
#source kernel config if exists |
#source kernel config if exists |
11 |
[ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel |
[ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel |
27 |
|
|
28 |
#same as /dev/.devfsd |
#same as /dev/.devfsd |
29 |
touch /dev/.udev |
touch /dev/.udev |
30 |
|
|
31 |
return 0 |
return 0 |
32 |
} |
} |
33 |
|
|
170 |
mkdir -p /dev/pts &> /dev/null || \ |
mkdir -p /dev/pts &> /dev/null || \ |
171 |
echo "Could not create /dev/pts !" |
echo "Could not create /dev/pts !" |
172 |
fi |
fi |
173 |
|
|
174 |
#now mount devpts |
#now mount devpts |
175 |
if [ -d /dev/pts ] |
if [ -d /dev/pts ] |
176 |
then |
then |
214 |
# make shure that udev is mounted but *not* devfs --> /dev/.devfsd |
# make shure that udev is mounted but *not* devfs --> /dev/.devfsd |
215 |
if [ "${RC_DEVICE_TARBALL}" = "yes" \ |
if [ "${RC_DEVICE_TARBALL}" = "yes" \ |
216 |
-a -e /dev/.udev \ |
-a -e /dev/.udev \ |
217 |
-a ! -e /dev/.devfsd ] |
-a ! -e /dev/.devfsd \ |
218 |
|
-a ! -e /.bootdev ] |
219 |
then |
then |
220 |
echo -e ${COLOREDSTAR}"Saving /dev device nodes ..." |
echo -e ${COLOREDSTAR}"Saving /dev device nodes ..." |
221 |
cd /dev |
cd /dev |
236 |
# make shure that udev is mounted but *not* devfs --> /dev/.devfsd |
# make shure that udev is mounted but *not* devfs --> /dev/.devfsd |
237 |
if [ "${RC_DEVICE_TARBALL}" = "yes" \ |
if [ "${RC_DEVICE_TARBALL}" = "yes" \ |
238 |
-a -e /dev/.udev \ |
-a -e /dev/.udev \ |
239 |
-a ! -e /dev/.devfsd ] |
-a ! -e /dev/.devfsd \ |
240 |
|
-a ! -e /.bootdev ] |
241 |
then |
then |
242 |
echo -e ${COLOREDSTAR}"Saving /dev device nodes ..." |
echo -e ${COLOREDSTAR}"Saving /dev device nodes ..." |
243 |
cd /dev |
cd /dev |