Page 2 of 2

Re: LE40C550 not hacked - how to arrive at CIFS/SMB mounts

Posted: Mon Apr 02, 2012 3:24 pm
by dan67
Ok, path to cifs.ko, when cifs.ko is in root of USB?

Code: Select all

#!/bin/sh
#Load cifs.ko module
insmod /dtv/usb/sda1/cifs.ko
sleep 10
...

Re: LE40C550 not hacked - how to arrive at CIFS/SMB mounts

Posted: Mon Apr 02, 2012 4:03 pm
by arris69
dan67 wrote:
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?
because rcSGO is toooo long and I not understands it.
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/
insmod and mount is for me simple way.
:D

maybe later.
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)

hth
arris

Re: LE40C550 not hacked - how to arrive at CIFS/SMB mounts

Posted: Tue Apr 03, 2012 12:00 pm
by dan67
Hello, whole samygo extension in future maybe.

Now, cifs and nas automoutn is working.
cifs.ko from samygo extension is in root dir of USB

here is my run.sh

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
Now I try insmod xfs.ko and PVR (another tread).