Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. /usr/local/etc # cat rcS
  2. #!/bin/sh
  3.  
  4. #ifconfig eth0 192.168.0.2 netmask 255.255.0.0
  5. #route add default gw 192.168.0.1
  6. #mount -t nfs -o nolock 192.168.0.1:/nfs/rootfs /mnt
  7.  
  8. #/sbin/modprobe ide-cd
  9. dd if=/Test.fat of=/dev/rd/0
  10. mount -t vfat /dev/rd/0 /mnt/rd
  11. swapon /mnt/rd/swap.img
  12.  
  13. /sbin/modprobe sata_mars&
  14.  
  15. #rm -f /usr/local/etc/dvdplayer/VenusSetup.dat
  16.  
  17. ln -s /dev/cdroms/cdrom0 /dev/cdrom0
  18. ln -s /dev/cdrom0 /dev/dvd
  19. ln -s /mnt/dvdvr /dev/dvdvr
  20.  
  21. # This variable tells DvdPlayer the firmware URL for internet updating
  22. LIVEUPDATE_URL=
  23. DEFAULT_AP_DIR=/usr/local/bin
  24.  
  25. if [ -f $DEFAULT_AP_DIR/DvdPlayer ] && [ -x $DEFAULT_AP_DIR/DvdPlayer ]; then
  26. cd $DEFAULT_AP_DIR
  27. if [ -f $DEFAULT_AP_DIR/RootApp ] && [ -x $DEFAULT_AP_DIR/RootApp ]; then
  28. echo Running dvdplayer with RootApp
  29. ./RootApp DvdPlayer&
  30. else
  31. echo Running dvdplayer
  32. ./DvdPlayer&
  33. fi
  34. else
  35. /etc/dvdplayer/script/run_tail
  36. fi
  37.  
  38. #Nand doesn't have signature
  39. #SIGNATURE=`dd if=/dev/mtdblock/0 bs=8 count=1`
  40. #if [ "$SIGNATURE" != "VERONA__" ]; then
  41. # echo This is not the first time booting up. No need to write the magic into flash
  42. # let size="0x"`grep mtd3 /proc/mtd | cut -d " " -f2`
  43. # let size=size-0x120000
  44. # let size=size+130816
  45. # let size=size/4
  46. # MAGIC=`dd if=/dev/mtdblock/3 bs=4 skip=$size count=1`
  47. # if [ "$MAGIC" = "babe" ]; then
  48. # echo This is not the first time booting up. No need to write the magic into flash
  49. # else
  50. # dd if=/usr/local/etc/magic of=/dev/mtdblock/3 bs=4 seek=$size count=1
  51. # echo This is the first time booting up. Write the magic into flash
  52. # fi
  53. #fi
  54.  
  55. echo 2 /tmp/hdd/volumes/HDD1/ > /sys/realtek_boards/misc_operations
  56.  
  57. /usr/local/etc #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement