Magellan Linux

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

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

revision 783 by niro, Mon Dec 22 22:09:33 2008 UTC revision 1105 by niro, Wed Jul 14 14:37:57 2010 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.23 2008-12-22 22:09:33 niro Exp $  # $Id$
3    
4  source /etc/conf.d/rc  source /etc/conf.d/rc
5  source ${rc_functions}  source ${rc_functions}
6    
 # load udev helper functions  
 source ${rc_base}/init.d/udev  
   
7  # get mage version  # get mage version
8  MAGEVER="$(< /etc/mageversion)"  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
12    
13    # override devicemanager helper functions
14    if [[ ${RC_DEVICEMANAGER} = udev ]] && [[ -f ${rc_base}/init.d/udev ]]
15    then
16     source ${rc_base}/init.d/udev
17    
18    elif [[ ${RC_DEVICEMANAGER} = mdev ]] && [[ -f ${rc_base}/init.d/mdev ]]
19    then
20     source ${rc_base}/init.d/mdev
21    fi
22    
23  trap "" INT QUIT TSTP  trap "" INT QUIT TSTP
24    
25  [ "$1" != "" ] && runlevel=$1  [ "$1" != "" ] && runlevel=$1
# Line 21  if [[ $runlevel = sysinit ]] Line 28  if [[ $runlevel = sysinit ]]
28  then  then
29   echo   echo
30   echo -e "${COLGREEN}Starting ${COLBLUE}MAGELLAN (v${MAGEVER}) ${COLGREEN}Linux${COLDEFAULT}"   echo -e "${COLGREEN}Starting ${COLBLUE}MAGELLAN (v${MAGEVER}) ${COLGREEN}Linux${COLDEFAULT}"
31   echo -e "Copyright 2001-2008 Niels Rogalla; http://magellan-linux.net"   echo -e "Copyright 2001-2010 Niels Rogalla; http://magellan-linux.net"
32   echo   echo
33    
34   # mount proc filesystem, needed for bootsplash;   # mount proc filesystem, needed for bootsplash;
# Line 50  then Line 57  then
57   fi   fi
58    
59    
60   #### load udev ####   #### load udev|mdev| ####
61   start_udev   start_devicemanager
62   ## end udev ##   ## end udev|mdev ##
63    
64    
65   ## load devpts ##   ## load devpts ##
# Line 126  then Line 133  then
133   mv -f "/tmp/devices-$$.tar.bz2" /lib/udev/state/devices.tar.bz2   mv -f "/tmp/devices-$$.tar.bz2" /lib/udev/state/devices.tar.bz2
134   evaluate_retval   evaluate_retval
135   fi   fi
136    
137     # stop udev|mdev now
138     stop_devicemanager
139  fi  fi
140    
141    

Legend:
Removed from v.783  
changed lines
  Added in v.1105