Advertisement
Guest User

rcS de /usr/local/etc/ en asus o!play 1.28P

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