Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 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/sda1/samsung
  12.  
  13. /sbin/insmod /mtd_rwarea/modules/cifs.ko
  14. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/Film /dtv/usb/sda1/film
  15. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/Film2 /dtv/usb/sda1/film2
  16. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/mp3 /dtv/usb/sda1/mp3
  17. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/mp32 /dtv/usb/sda1/mp32
  18. /bin/mount -o user=USERNAME,password="PASSWORD" -t cifs //192.168.1.117/SamsungTV /dtv/usb/sda1/samsung
  19.  
  20. /bin/dd if=/dev/zero of=/dtv/vusb bs=512 count=4
  21.  
  22. /sbin/insmod /mtd_rwarea/modules/dummy_hcd.ko
  23. /bin/sleep 3
  24.  
  25. /sbin/insmod /mtd_rwarea/modules/g_file_storage.ko
  26. /bin/sleep 3
  27.  
  28. /bin/echo -e "[sda]
  29. Vendor : CifsMount
  30. Product : VUSB
  31. Serial : Q80VQLFH
  32. Devpath : 8
  33. Lun : 0
  34. MountDir : /dtv/usb/sda1
  35. FileSystem : vfat
  36. " >> /dtv/usb/log
  37. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement