Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/rc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3 by niro, Mon Dec 13 22:52:07 2004 UTC revision 71 by niro, Tue Mar 15 19:07:56 2005 UTC
# Line 1  Line 1 
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
# Line 25  populate_udev() { Line 27  populate_udev() {
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    
# Line 168  then Line 170  then
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
# Line 212  then Line 214  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
# Line 233  then Line 236  then
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

Legend:
Removed from v.3  
changed lines
  Added in v.71