Magellan Linux

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

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

trunk/busybox-initscripts/rc/rc revision 1171 by niro, Wed Dec 15 18:13:51 2010 UTC trunk/initscripts/busybox/rc/rc revision 1774 by niro, Sat Mar 3 16:00:17 2012 UTC
# Line 7  source ${rc_functions} Line 7  source ${rc_functions}
7  # source kernel config if exists  # source kernel config if exists
8  [ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel  [ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel
9    
10  # prefer mdev if it is present, always fall back to udev  # get mage version
11  # these settings can be overriden via /etc/conf.d/kernel  if [[ -f /etc/os-release ]]
 if [[ -z ${RC_DEVMANAGER} ]]  
12  then  then
13   if [[ -e ${rc_base}/init.d/mdev ]]   MAGEVER="$(read_os_release version_id)"
14   then  elif [ -f /etc/mageversion ]
15   RC_DEVMANAGER="udev"  then
16   elif [[ -e ${rc_base}/init.d/udev ]]   MAGEVER="$(< /etc/mageversion)"
17   then  else
18   RC_DEVMANAGER="udev"   MAGEVER="unkown"
  fi  
19  fi  fi
20    
21  # load device management hooks  # source kernel config if exists
22  source ${rc_base}/init.d/${RC_DEVMANAGER}  [ -f /etc/conf.d/kernel ] && source /etc/conf.d/kernel
   
 # get mage version  
 MAGEVER="$(< /etc/mageversion)"  
   
 trap "" INT QUIT TSTP  
23    
24  [[ ! -z $1 ]] && runlevel=$1  # override devicemanager helper functions
25    if [[ ${RC_DEVICEMANAGER} = udev ]] && [[ -f ${rc_base}/init.d/udev ]]
26    then
27     source ${rc_base}/init.d/udev
28    
29  if [[ -z ${runlevel} ]]  elif [[ ${RC_DEVICEMANAGER} = mdev ]] && [[ -f ${rc_base}/init.d/mdev ]]
30  then  then
31   echo "Usage: $0 <runlevel>" >&2   source ${rc_base}/init.d/mdev
  exit 1  
32  fi  fi
33    
34    trap "" INT QUIT TSTP
35    
36    [ "$1" != "" ] && runlevel=$1
37    
38  if [[ $runlevel = sysinit ]]  if [[ $runlevel = sysinit ]]
39  then  then
40   rc_echo   rc_echo
41   rc_echo -e "${COLGREEN}Starting ${COLBLUE}MAGELLAN (v${MAGEVER}) ${COLGREEN}Linux${COLDEFAULT}"   rc_echo -e "${COLGREEN}Starting ${COLBLUE}MAGELLAN (v${MAGEVER}) ${COLGREEN}Linux${COLDEFAULT}"
42   rc_echo -e "Copyright 2001-2010 Niels Rogalla; http://magellan-linux.net"   rc_echo "Copyright 2001-2012 Niels Rogalla; http://magellan-linux.net"
43   rc_echo   rc_echo
44    
45   # mount proc filesystem, needed for bootsplash;   # mount proc filesystem, needed for bootsplash;
# Line 73  then Line 71  then
71   fi   fi
72    
73   # start device management   # start device management
74   start_devmanager   start_devicemanager
75    
76   ## load devpts ##   ## load devpts ##
77   # 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

Legend:
Removed from v.1171  
changed lines
  Added in v.1774