Code: Select all
#!/bin/sh
#Load cifs.ko module
insmod /dtv/usb/sda1/cifs.ko
sleep 10
...
Code: Select all
#!/bin/sh
#Load cifs.ko module
insmod /dtv/usb/sda1/cifs.ko
sleep 10
...
you don't need to understand it and more important don't touch it, same for rc.sysinit. you just need to mess around in SamyGO/etc/init.d/dan67 wrote:because rcSGO is toooo long and I not understands it.juuso wrote:But the easiest way is just use SamyGO Extensions on USB script with vusb.init and samba.init enabled. All other scripts can be dissabled. Why do you put on pants over head?
it's all done already, you just need to pass your username and password for windows shares to the scripts ( direct in the scripts or via external config file. how, it's written in wiki and in min. 100 other posts)insmod and mount is for me simple way.
![]()
maybe later.
Code: Select all
#!/bin/sh
#echo 'OK' >> /dtv/usb/sda1/run_start.ok #test for me, if script start
insmod /dtv/usb/sda1/cifs.ko
sleep 2
umount /dtv/usb/sda1/NAS # umount old share after replug USB (maybe is this useless?)
sleep 2
mount -o user=tv,password=tv -t cifs //10.0.0.101/Video /dtv/usb/sda1/NAS
echo 'OK' >> /dtv/usb/sda1/run.ok # test for me