Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # Check to see if we're starting as init
  2. unset RUN_AS_INIT
  3. #if grep -q '[ =/]init-eMMC-flasher-v2.sh\>' /proc/cmdline ; then
  4. # RUN_AS_INIT=1
  5.  
  6. # root_drive="$(sed 's:.*root=/dev/\([^ ]*\):\1:;s/[ $].*//' /proc/cmdline)"
  7.  
  8. # if [ ! "x${root_drive}" = "xmmcblk0p2" ] || [ ! "x${root_drive}" = "xmmcblk1p2" ] ; then
  9. root_drive="mmcblk0p2"
  10. # fi
  11.  
  12. boot_drive="${root_drive%?}1"
  13.  
  14. mount /dev/$boot_drive /boot/uboot -o ro
  15. mount -t tmpfs tmpfs /tmp
  16. #fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement