Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. #!/bin/ash
  2.  
  3. AWAKE=`ping -c 1 192.168.1.117 | grep transmitted | cut -b 24`
  4. if [ $AWAKE -eq "1" ]; then
  5. /bin/mkdir -p /dtv/usb
  6. /bin/mkdir -p /dtv/usb/sda1
  7. /bin/mkdir -p /dtv/usb/sda1/film
  8. /bin/mkdir -p /dtv/usb/sda1/film2
  9. /bin/mkdir -p /dtv/usb/sda1/mp3
  10. /bin/mkdir -p /dtv/usb/sda1/mp32
  11. /bin/mkdir -p /dtv/usb/sda2
  12. /bin/mkdir -p /dtv/usb/sda2/samsung
  13.  
  14. /sbin/insmod /mtd_rwarea/modules/cifs.ko
  15. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/Film /dtv/usb/sda1/film
  16. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/Film2 /dtv/usb/sda1/film2
  17. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/mp3 /dtv/usb/sda1/mp3
  18. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/mp32 /dtv/usb/sda1/mp32
  19. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/SamsungTV /dtv/usb/sda2/samsung
  20.  
  21. /bin/dd if=/dev/zero of=/dtv/vusb bs=512 count=4
  22.  
  23. /sbin/insmod /mtd_rwarea/modules/dummy_hcd.ko
  24. /bin/sleep 3
  25.  
  26. /sbin/insmod /mtd_rwarea/modules/g_file_storage.ko
  27. /bin/sleep 3
  28.  
  29. /bin/echo -e "[sda]
  30. Vendor : CifsMount
  31. Product : VUSB
  32. Serial : Q80VQLFH
  33. Devpath : 8
  34. Lun : 0
  35. MountDir : /dtv/usb/sda1
  36. FileSystem : vfat
  37. " >> /dtv/usb/log
  38. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement