Magellan Linux

Diff of /trunk/mkinitrd-magellan/livecd/linuxrc.sh

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

revision 894 by niro, Wed Aug 5 16:24:23 2009 UTC revision 1188 by niro, Thu Dec 16 01:24:51 2010 UTC
# Line 59  DOSATA=yes Line 59  DOSATA=yes
59  DOFB=no  DOFB=no
60  DOPATA=yes  DOPATA=yes
61  FORCED_ROOTFS=""  FORCED_ROOTFS=""
62    INITEXEC="/sbin/init"
63    BREAK_ENABLED=no
64    
65  ## starts here ##  ## starts here ##
66    
# Line 88  do Line 90  do
90   dopata) DOPATA=yes;;   dopata) DOPATA=yes;;
91   nopata) DOPATA=no;;   nopata) DOPATA=no;;
92   rootfs=*) FORCED_ROOTFS="${i#*=}";;   rootfs=*) FORCED_ROOTFS="${i#*=}";;
93     init=*) INITEXEC="${i#*=}";;
94     break) BREAK_ENABLED=yes ;;
95   esac   esac
96  done  done
97    
# Line 201  echo > /proc/sys/kernel/hotplug Line 205  echo > /proc/sys/kernel/hotplug
205  # de-silencio  # de-silencio
206  echo 3 > /proc/sys/kernel/printk  echo 3 > /proc/sys/kernel/printk
207    
208    if [[ ${BREAK_ENABLED} = yes ]]
209    then
210     echo "-- Break requested, type 'exit' to resume operation ..."
211     ash
212    fi
213    
214  echo "-- Switching to real sysroot ..."  echo "-- Switching to real sysroot ..."
215  umount /dev  umount /dev
216  umount /sys  umount /sys
217  umount /proc  umount /proc
218    
219  exec run-init /sysroot /sbin/init $@ </sysroot/dev/console >/sysroot/dev/console  exec run-init /sysroot ${INITEXEC} $@ </sysroot/dev/console >/sysroot/dev/console

Legend:
Removed from v.894  
changed lines
  Added in v.1188