Magellan Linux

Diff of /trunk/initscripts/busybox/rc/rc

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

revision 1168 by niro, Wed Dec 15 17:44:36 2010 UTC revision 1197 by niro, Thu Jan 27 20:42:51 2011 UTC
# Line 4  Line 4 
4  source /etc/conf.d/rc  source /etc/conf.d/rc
5  source ${rc_functions}  source ${rc_functions}
6    
7  # load udev helper functions  # source kernel config if exists
8  source ${rc_base}/init.d/udev  [ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel
9    
10  # get mage version  # get mage version
11  MAGEVER="$(< /etc/mageversion)"  MAGEVER="$(< /etc/mageversion)"
# Line 13  MAGEVER="$(< /etc/mageversion)" Line 13  MAGEVER="$(< /etc/mageversion)"
13  # source kernel config if exists  # source kernel config if exists
14  [ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel  [ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel
15    
16  trap "" INT QUIT TSTP  # override devicemanager helper functions
17    if [[ ${RC_DEVICEMANAGER} = udev ]] && [[ -f ${rc_base}/init.d/udev ]]
18  [[ ! -z $1 ]] && runlevel=$1  then
19     source ${rc_base}/init.d/udev
20    
21  if [[ -z ${runlevel} ]]  elif [[ ${RC_DEVICEMANAGER} = mdev ]] && [[ -f ${rc_base}/init.d/mdev ]]
22  then  then
23   echo "Usage: $0 <runlevel>" >&2   source ${rc_base}/init.d/mdev
  exit 1  
24  fi  fi
25    
26    trap "" INT QUIT TSTP
27    
28    [ "$1" != "" ] && runlevel=$1
29    
30  if [[ $runlevel = sysinit ]]  if [[ $runlevel = sysinit ]]
31  then  then
32   rc_echo   rc_echo
33   rc_echo -e "${COLGREEN}Starting ${COLBLUE}MAGELLAN (v${MAGEVER}) ${COLGREEN}Linux${COLDEFAULT}"   rc_echo -e "${COLGREEN}Starting ${COLBLUE}MAGELLAN (v${MAGEVER}) ${COLGREEN}Linux${COLDEFAULT}"
34   rc_echo -e "Copyright 2001-2010 Niels Rogalla; http://magellan-linux.net"   rc_echo "Copyright 2001-2011 Niels Rogalla; http://magellan-linux.net"
35   rc_echo   rc_echo
36    
37   # mount proc filesystem, needed for bootsplash;   # mount proc filesystem, needed for bootsplash;
# Line 59  then Line 62  then
62   rc_echo -e ${COLYELLOW}"It's essential for a 2.6 kernel."   rc_echo -e ${COLYELLOW}"It's essential for a 2.6 kernel."
63   fi   fi
64    
65   #### load udev ####   # start device management
66   start_udev   start_devicemanager
  ## end udev ##  
67    
68   ## load devpts ##   ## load devpts ##
69   # devfs/udev with 2.6 has no ptys, so devpts is also needed   # devfs/udev with 2.6 has no ptys, so devpts is also needed
# Line 131  then Line 133  then
133   evaluate_retval   evaluate_retval
134   fi   fi
135    
136   # stop udev now   # stop device management
137   stop_udev   stop_devicemanager
138    
139   # run through all runlevel scripts   # run through all runlevel scripts
140   for i in $(ls -v ${rc_base}/rc${runlevel}.d/K* 2> /dev/null)   for i in $(ls -v ${rc_base}/rc${runlevel}.d/K* 2> /dev/null)

Legend:
Removed from v.1168  
changed lines
  Added in v.1197