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 1174 by niro, Wed Dec 15 18:22:16 2010 UTC trunk/initscripts/busybox/rc/rc revision 1788 by niro, Mon Apr 2 11:26:04 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 67  then Line 65  then
65   mount -n -t sysfs sysfs /sys   mount -n -t sysfs sysfs /sys
66   evaluate_retval   evaluate_retval
67   else   else
68   rc_echo -e ${COLORED}"Fatal: mountpoint /sys missing ..."   rc_echo -e ${COLRED}"Fatal: mountpoint /sys missing ..."
69   rc_echo -e ${COLYELLOW}"Please create the directory /sys (mkdir -p /sys)."   rc_echo -e ${COLYELLOW}"Please create the directory /sys (mkdir -p /sys)."
70   rc_echo -e ${COLYELLOW}"It's essential for a 2.6 kernel."   rc_echo -e ${COLYELLOW}"It's essential for a 2.6 kernel."
71   fi   fi

Legend:
Removed from v.1174  
changed lines
  Added in v.1788