mikerohan wrote:hey guys,
do you really have this file "/mtd_down/widget/user/SamyGO/SamyGO/etc/init.d/01_04_pvr_drm_disable.init"?
it's not on my TV ....
Cheers!
you dont need it realy, coz it is done when you start SamyGO app from SamrtHub.
mikerohan wrote:hey guys,
do you really have this file "/mtd_down/widget/user/SamyGO/SamyGO/etc/init.d/01_04_pvr_drm_disable.init"?
it's not on my TV ....
Cheers!
think ntfs-3g and fuse are shipped with the widget so you can write a script to mount your ntfs disk too....Jimmbean wrote:Hi Guys,
Thanks for this wonderfull app!
At the moment I've got a question regarding the USB Hard Disk access.
I've got a 1TB WD external harddisk connected to the TV, which is formated as NTFS.
Over FTP or Samba Access I can read all the data from this drive, but its impossible to delete any files or write files to the drive.
I found out that its possible on Fat formated drives like my USB dongle. So a question came up:
Is it possible anyway to become full access to the NTFS drive?
The problem is that I've got many big (some over 10GB) mkv's on the drive, so it is not possible to change to Fat.
Any Ideas?
Best Regards Jimmy
corrected script 04_04_samba.init. To mount a set of resources to specific servers :EricT wrote:Ok, test done with my second TV and it works with only samba.init !EricT wrote:@ arris
...
Now, just keeping samba.init, I can browse the content without any problem.
I have to confirm this with my second Serie D TV.
And I think I don't have to do the test you asked for. The problem is not where we thought.
Now, I have a question from a linux newbie. I have a ServerA with ShareA1, shareA2, shareA3, shareA4. Is-it possible to set the init in a way I get only ShareA2 and shareA4 from ServerA ?
And If I have also a ServerB with ShareB1, ShareB2 and ShareB3, how to add this one with ShareB1 and ShareB3 ?
Thanks.
Code: Select all
#!/bin/sh
#
# ? Copyright 1996-2010, ZsoltTech.Com
# by Ser Lev Arris <arris@ZsoltTech.Com>
#
# donated for the SamyGo Project
# http://samygo.sourceforge.net/
#
# Version: SamyGO svn $Id: 04_04_samba.init 1069 2011-01-03 16:47:24Z arris69 $
#
. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER=""
PASSWD=""
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######
[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata
#If not set user or pass exit
[ -z $USER ] && exit 1
[ -z $PASSWD ] && exit 1
DEST_DIR=$MOUNT_PATH/smb
SERVER=""
# SERVER="10.0.0.1 10.0.0.2" # if you want a fixed server
SHARES=""
#SHARES="share1 share2 share3" # if you want set fixed shares
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
M_OPTS="$PERM,user=${USER},password=${PASSWD},codepage=cp1250,iocharset=utf8"
SERVERS="Don't set me!!"
do_mount()
{
# $(echo -e "[sdh]\nVendor : CifsMount\nProduct : $FR_NAME\n\
#Serial : Q80VQLFH\nDevpath : 8\nLun : 0\nMountDir : $DEST_DIR\nFileSystem : vfat\n" >> /dtv/usb/log)
for i in $S_MOUNTS ; do
i="$(echo -n $i | sed -e 's/SGOspace/ /g')"
M_POINT="$DEST_DIR/$1/$(echo -n $i | sed -e "s/\\\$/_/g")"
mkdir -p "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ] ; then
/bin/busybox mount -o "${M_OPTS}" -t cifs "//$1/$i" "$M_POINT"
else
echo "$M_POINT is mounted!"
fi
done
}
get_shares()
{
if [ -z "$SHARES" ] ; then
echo "Search Shares"
for i in $SERVERS ; do
echo "on: $i"
S_MOUNTS=$(smbclient -s "$SYSROOT/etc/samba/smb.conf" -U ${USER}%${PASSWD} \
-g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | sed -r 's/.*\|(.*)\|.*/\1/' | sed -r 's/ /SGOspace/g')
# -g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | cut -d "|" -f2)
[ -n "$S_MOUNTS" ] && do_mount $i
done
else
echo -n "Fixed Server: "
for i in $SERVERS ; do
echo $i
S_MOUNTS=$SHARES
[ -n "$S_MOUNTS" ] && do_mount $i
done
fi
}
get_servers()
{
if [ -z "$SERVER" ] ; then
# SERVERS=$(cat /proc/net/arp | grep -v "IP address" | cut -d " " -f1)
SERVERS=$(cat /proc/net/arp | grep -v "IP address" | sed 's/^\(\w*.\w*.\w*.\w*\) *.*/\1/')
else
SERVERS=$SERVER
fi
}
case $1 in
start)
insmod $MOD_DIR/kernel/fs/cifs/cifs.ko
mkdir -p "$DEST_DIR"
get_servers
get_shares
;;
stop)
# may can fail if device access the mount from content library
# for i in $(cat /proc/mounts | grep cifs | cut -d " " -f2) ; do
for i in $(cat /proc/mounts | grep cifs | grep "$DEST_DIR" | sed 's/^\(.*\) \(.*\) cifs .*/\2/') ; do
i="$(echo -n $i | sed -r 's/\\040/ /g')"
/bin/busybox umount "$i"
done
;;
status)
/bin/mount | grep "$DEST_DIR"
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 0
;;
esac