i?ve read many Threads here to Record to an NAS Share, but i don?t understand what i must realy do.
My Goal is to Record to my NAS Samba Share. I don?t understand what i must Change in the Files = 02_04_vusb.vpvrimage.init, 04_04_samba.init, 80_80_record_to_nwshare.init ?!
Here are my changes to the 3 Files. As sayed, i have made changes to it, but don?t know if ist right. Ok ist not right because i don?t run

So, what do i have to Change to make it run?!
SpoilerShow
02_04_vusb.vpvrimage.init
#!/bin/sh
. /dtv/SGO.env
case $1 in
start)
[ -e $SYSROOT/etc/init.d/02_04_vusb.init ] && exit 1
[ ! -e $SYSROOT/etc/init.d/03_03_nfsmount.init ] && exit 1
[ ! -e $SYSROOT/etc/init.d/80_80_record_to_nwshare.init ] && exit 1
mkfs.vfat -C /dtv/vusb 500
insmod $MOD_DIR/kernel/drivers/usb/gadget/dummy_hcd.ko || \
insmod $MOD_DIR/kernel/drivers/mstar/usb/gadget/dummy_hcd.ko
XFSIMAGE=""$SYSROOT"/xfsimage"
XFSMOUNT="/dtv/xfsmount"
PVRIMAGE=""$XFSMOUNT"/pvrimage"
PVRMOUNT=""$XFSMOUNT"/pvrmount"
GFILESTORAGE="/dtv/vusb"
[ ! -d $XFSMOUNT ] && mkdir $XFSMOUNT
[ ! -f $XFSIMAGE ] && dd if=/dev/zero of=$XFSIMAGE bs=1M count=17 status=noxfer 2>/dev/null
mkfs.xfs -qf $XFSIMAGE
cat /proc/mounts | grep -q "$XFSMOUNT" || /bin/busybox mount -o loop $XFSIMAGE $XFSMOUNT
if [ ! -f $PVRIMAGE ]; then
dd if=/dev/zero of="$PVRIMAGE" bs=1M count=1 seek=1536 status=noxfer 2>/dev/null
mkfs.xfs "$PVRIMAGE"
mkdir -p "$PVRMOUNT"
/bin/busybox mount -o loop "$PVRIMAGE" "$PVRMOUNT"
touch ""$PVRMOUNT"/.PlaceHolderDO-NOT-REMOVE"
/bin/busybox umount "$PVRMOUNT"
fi
[ -e $PVRIMAGE ] && GFILESTORAGE="$GFILESTORAGE,$PVRIMAGE"
insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file="$GFILESTORAGE" || \
insmod $MOD_DIR/kernel/drivers/mstar/usb/gadget/g_file_storage.ko file="$GFILESTORAGE"
sleep 3
FOUND=false
SAMYGODEVS=''
for i in /sys/block/sd?/device/model ; do
if [ `cat $i | grep -c "SamyGO Virt"` -gt "0" ]; then
CURDEV="`echo $i | sed 's/^\/.*\(sd.\)\/.*/\1/g'`"
SAMYGODEVS="$SAMYGODEVS /dev/$CURDEV"
if [ $FOUND = false ]; then
echo "found gadget at: $i"
dev=$CURDEV
echo "scsidev: $dev"
FOUND=true
fi
else
echo "real storage device at: $i"
fi
done
SAMYGODEVS=`echo $SAMYGODEVS|sed 's/^[[:space:]]//'`
sed -i -e "s,MountPlaceholder,/dtv/usb/$dev," /dtv/SGO.env
echo "SAMYGODEVS=\"$SAMYGODEVS\"" >> /dtv/SGO.env
;;
stop)
rmmod g_file_storage
# some troubles if we mess around with dummy_hcd, so not remove on stop
# rmmod dummy_hcd
;;
status)
cat /sys/block/sd?/device/model
;;
*)
echo "Usage: $0 {start|stop|status}" 1>&2
exit 0
;;
esac
#!/bin/sh
. /dtv/SGO.env
case $1 in
start)
[ -e $SYSROOT/etc/init.d/02_04_vusb.init ] && exit 1
[ ! -e $SYSROOT/etc/init.d/03_03_nfsmount.init ] && exit 1
[ ! -e $SYSROOT/etc/init.d/80_80_record_to_nwshare.init ] && exit 1
mkfs.vfat -C /dtv/vusb 500
insmod $MOD_DIR/kernel/drivers/usb/gadget/dummy_hcd.ko || \
insmod $MOD_DIR/kernel/drivers/mstar/usb/gadget/dummy_hcd.ko
XFSIMAGE=""$SYSROOT"/xfsimage"
XFSMOUNT="/dtv/xfsmount"
PVRIMAGE=""$XFSMOUNT"/pvrimage"
PVRMOUNT=""$XFSMOUNT"/pvrmount"
GFILESTORAGE="/dtv/vusb"
[ ! -d $XFSMOUNT ] && mkdir $XFSMOUNT
[ ! -f $XFSIMAGE ] && dd if=/dev/zero of=$XFSIMAGE bs=1M count=17 status=noxfer 2>/dev/null
mkfs.xfs -qf $XFSIMAGE
cat /proc/mounts | grep -q "$XFSMOUNT" || /bin/busybox mount -o loop $XFSIMAGE $XFSMOUNT
if [ ! -f $PVRIMAGE ]; then
dd if=/dev/zero of="$PVRIMAGE" bs=1M count=1 seek=1536 status=noxfer 2>/dev/null
mkfs.xfs "$PVRIMAGE"
mkdir -p "$PVRMOUNT"
/bin/busybox mount -o loop "$PVRIMAGE" "$PVRMOUNT"
touch ""$PVRMOUNT"/.PlaceHolderDO-NOT-REMOVE"
/bin/busybox umount "$PVRMOUNT"
fi
[ -e $PVRIMAGE ] && GFILESTORAGE="$GFILESTORAGE,$PVRIMAGE"
insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file="$GFILESTORAGE" || \
insmod $MOD_DIR/kernel/drivers/mstar/usb/gadget/g_file_storage.ko file="$GFILESTORAGE"
sleep 3
FOUND=false
SAMYGODEVS=''
for i in /sys/block/sd?/device/model ; do
if [ `cat $i | grep -c "SamyGO Virt"` -gt "0" ]; then
CURDEV="`echo $i | sed 's/^\/.*\(sd.\)\/.*/\1/g'`"
SAMYGODEVS="$SAMYGODEVS /dev/$CURDEV"
if [ $FOUND = false ]; then
echo "found gadget at: $i"
dev=$CURDEV
echo "scsidev: $dev"
FOUND=true
fi
else
echo "real storage device at: $i"
fi
done
SAMYGODEVS=`echo $SAMYGODEVS|sed 's/^[[:space:]]//'`
sed -i -e "s,MountPlaceholder,/dtv/usb/$dev," /dtv/SGO.env
echo "SAMYGODEVS=\"$SAMYGODEVS\"" >> /dtv/SGO.env
;;
stop)
rmmod g_file_storage
# some troubles if we mess around with dummy_hcd, so not remove on stop
# rmmod dummy_hcd
;;
status)
cat /sys/block/sd?/device/model
;;
*)
echo "Usage: $0 {start|stop|status}" 1>&2
exit 0
;;
esac
SpoilerShow
04_04_samba.init
#!/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="blabla"
PASSWD="blabla"
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######
[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata
[ -z $USER ] && exit 1
[ -z $PASSWD ] && exit 1
DEST_DIR=$MOUNT_PATH/smb
SERVER="192.XXX.XXX.XXX"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES="192.XXX.XXX.XXX:/XXX"
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
M_OPTS="$PERM,user=${USER},password=${PASSWD},codepage=cp850,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()
{
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
}
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
#!/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="blabla"
PASSWD="blabla"
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######
[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata
[ -z $USER ] && exit 1
[ -z $PASSWD ] && exit 1
DEST_DIR=$MOUNT_PATH/smb
SERVER="192.XXX.XXX.XXX"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES="192.XXX.XXX.XXX:/XXX"
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
M_OPTS="$PERM,user=${USER},password=${PASSWD},codepage=cp850,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()
{
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
}
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
SpoilerShow
80_80_record_to_nwshare.init
#!/bin/sh
#
# ? Copyleft 1996-2011, ZsoltTech.Com
# by Ser Lev Arris <arris@ZsoltTech.Com>
# based on research of:
# andy_nl: http://sourceforge.net/apps/phpbb/samyg ... ile&u=1728
# gipas: http://sourceforge.net/apps/phpbb/samyg ... ile&u=1751
# http://sourceforge.net/apps/phpbb/samyg ... =20#p10553
#
# donated for the SamyGo Project
# http://samygo.sourceforge.net/
#
# http://www.gnu.org/licenses/gpl-howto.html
#
# This script is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
#
#
# TODO: more sysv style, more error handling
#
# Modified by Remigio Conti 20110110
# Modified by kayaweed for recording to cifs (windows) share see:
# http://sourceforge.net/apps/phpbb/samyg ... 074#p12068
#
. /dtv/SGO.env
# Remote NFS fileserver for recording
PVRSERVER='//192.XXX.XXX.XXX'
# Remote NFS share for recording
PVRPATH='/disk/Aufnahmen/'
# NFS mount options. If you experince problem like slow performance, try change this.
# M_OPTS="soft,udp,async,nolock,rsize=32768,wsize=8192"
# M_OPTS="rw,soft,udp,nolock,rsize=32768,wsize=32768"
# M_OPTS="soft,tcp,nolock,rsize=32768,wsize=32768"
# M_OPTS="soft,tcp,nolock,rsize=8192,wsize=8192"
M_OPTS="soft,tcp,nolock"
# Number of second to wait for pvrimage mount point to be ready.
# If you experience problem like "No virtual device found ready for PVR or already mounted" message in samygo.log then try to increase this.
WAIT=25
WriteToLog ()
{
case $2 in
1)
NOW=`date +%Y%m%d-%H%M%S`
echo "$3" "$NOW $1" >>$LOGFILE
;;
2)
echo "$3" "$1" >>$LOGFILE
;;
esac
}
CheckNFSServer ()
{
WriteToLog "Check if server $1 is reachable and NFS service available..." 1 '-n'
showmount --no-header -e $1 1>/dev/null 2>&1
if [ $? = 0 ]; then
WriteToLog 'OK' 2
return 0
else
echo "NFS server $1 not reachable or NFS service not available"
WriteToLog 'not reachable or NFS service not available' 2
return 1
fi
}
SearchPVRImageMP ()
{
FOUND=false
WriteToLog 'Search for mount point of pvrimage...' 1
sleep $WAIT
for DEV in `echo $SAMYGODEVS`
do
MPOINT=`grep -e ^$DEV /proc/mounts | cut -d " " -f 2`
if [ -e "$MPOINT/.PlaceHolderDO-NOT-REMOVE" ] && [ $FOUND = false ]; then
PVRMPOINT=$MPOINT
FOUND=true
WriteToLog "pvrimage mount point is $PVRMPOINT" 1
fi
done
}
MountSMBShare ()
{
WriteToLog "Mount of $2:$3 on $4... " 1 '-n'
/bin/busybox mount -o "${M_OPTS}" -t cifs "//${PVRSERVER}/${PVRSHARES}" "$PVRMPOINT" 2>>$LOGFILE
if [ $? = 0 ]; then
WriteToLog 'OK' 2
CONTENTSDIR="$4/CONTENTS"
if ! [ -d "$CONTENTSDIR" ]; then
echo -n "Creating directory $CONTENTSDIR for the first time..."
WriteToLog "Creating directory $CONTENTSDIR for the first time..." 1 '-n'
mkdir "$CONTENTSDIR"
echo "OK"
WriteToLog 'OK' 2
echo -n "Creating .PVRPfmChkLog file..."
WriteToLog 'Creating .PVRPfmChkLog file...' 1 '-n'
echo '1' > "$CONTENTSDIR/.PVRPfmChkLog"
echo "OK"
WriteToLog 'OK' 2
fi
echo "PVR on server $2 is now ready in localpath $4"
WriteToLog "PVR on server $2 is now ready in localpath $4" 1
else
echo "Error during mount of $2:$3 on $4 see $LOGFILE for details"
fi
}
case $1 in
start)
echo >$LOGFILE
WriteToLog 'Start Record to Network Share script (80_80_record_to_nwshare.init)' 1
CheckNFSServer "$PVRSERVER"
if [ $? = 0 ]; then
SearchPVRImageMP
if [ $FOUND = true ]; then
MountSMBShare "$M_OPTS" "$PVRSERVER" "$PVRSHARES" "$PVRMPOINT"
else
echo 'No virtual device found ready for PVR or already mounted'
WriteToLog 'No virtual device found ready for PVR or already mounted' 1
fi
fi
WriteToLog 'End Record to Network Share script (80_80_record_to_nwshare.init)' 1
;;
stop)
echo "pls request it on forum"
;;
status)
echo "pls request it on forum"
;;
*)
echo "Usage: $0 {start|stop|status}" 1>&2
exit 0
;;
esac
#!/bin/sh
#
# ? Copyleft 1996-2011, ZsoltTech.Com
# by Ser Lev Arris <arris@ZsoltTech.Com>
# based on research of:
# andy_nl: http://sourceforge.net/apps/phpbb/samyg ... ile&u=1728
# gipas: http://sourceforge.net/apps/phpbb/samyg ... ile&u=1751
# http://sourceforge.net/apps/phpbb/samyg ... =20#p10553
#
# donated for the SamyGo Project
# http://samygo.sourceforge.net/
#
# http://www.gnu.org/licenses/gpl-howto.html
#
# This script is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
#
#
# TODO: more sysv style, more error handling
#
# Modified by Remigio Conti 20110110
# Modified by kayaweed for recording to cifs (windows) share see:
# http://sourceforge.net/apps/phpbb/samyg ... 074#p12068
#
. /dtv/SGO.env
# Remote NFS fileserver for recording
PVRSERVER='//192.XXX.XXX.XXX'
# Remote NFS share for recording
PVRPATH='/disk/Aufnahmen/'
# NFS mount options. If you experince problem like slow performance, try change this.
# M_OPTS="soft,udp,async,nolock,rsize=32768,wsize=8192"
# M_OPTS="rw,soft,udp,nolock,rsize=32768,wsize=32768"
# M_OPTS="soft,tcp,nolock,rsize=32768,wsize=32768"
# M_OPTS="soft,tcp,nolock,rsize=8192,wsize=8192"
M_OPTS="soft,tcp,nolock"
# Number of second to wait for pvrimage mount point to be ready.
# If you experience problem like "No virtual device found ready for PVR or already mounted" message in samygo.log then try to increase this.
WAIT=25
WriteToLog ()
{
case $2 in
1)
NOW=`date +%Y%m%d-%H%M%S`
echo "$3" "$NOW $1" >>$LOGFILE
;;
2)
echo "$3" "$1" >>$LOGFILE
;;
esac
}
CheckNFSServer ()
{
WriteToLog "Check if server $1 is reachable and NFS service available..." 1 '-n'
showmount --no-header -e $1 1>/dev/null 2>&1
if [ $? = 0 ]; then
WriteToLog 'OK' 2
return 0
else
echo "NFS server $1 not reachable or NFS service not available"
WriteToLog 'not reachable or NFS service not available' 2
return 1
fi
}
SearchPVRImageMP ()
{
FOUND=false
WriteToLog 'Search for mount point of pvrimage...' 1
sleep $WAIT
for DEV in `echo $SAMYGODEVS`
do
MPOINT=`grep -e ^$DEV /proc/mounts | cut -d " " -f 2`
if [ -e "$MPOINT/.PlaceHolderDO-NOT-REMOVE" ] && [ $FOUND = false ]; then
PVRMPOINT=$MPOINT
FOUND=true
WriteToLog "pvrimage mount point is $PVRMPOINT" 1
fi
done
}
MountSMBShare ()
{
WriteToLog "Mount of $2:$3 on $4... " 1 '-n'
/bin/busybox mount -o "${M_OPTS}" -t cifs "//${PVRSERVER}/${PVRSHARES}" "$PVRMPOINT" 2>>$LOGFILE
if [ $? = 0 ]; then
WriteToLog 'OK' 2
CONTENTSDIR="$4/CONTENTS"
if ! [ -d "$CONTENTSDIR" ]; then
echo -n "Creating directory $CONTENTSDIR for the first time..."
WriteToLog "Creating directory $CONTENTSDIR for the first time..." 1 '-n'
mkdir "$CONTENTSDIR"
echo "OK"
WriteToLog 'OK' 2
echo -n "Creating .PVRPfmChkLog file..."
WriteToLog 'Creating .PVRPfmChkLog file...' 1 '-n'
echo '1' > "$CONTENTSDIR/.PVRPfmChkLog"
echo "OK"
WriteToLog 'OK' 2
fi
echo "PVR on server $2 is now ready in localpath $4"
WriteToLog "PVR on server $2 is now ready in localpath $4" 1
else
echo "Error during mount of $2:$3 on $4 see $LOGFILE for details"
fi
}
case $1 in
start)
echo >$LOGFILE
WriteToLog 'Start Record to Network Share script (80_80_record_to_nwshare.init)' 1
CheckNFSServer "$PVRSERVER"
if [ $? = 0 ]; then
SearchPVRImageMP
if [ $FOUND = true ]; then
MountSMBShare "$M_OPTS" "$PVRSERVER" "$PVRSHARES" "$PVRMPOINT"
else
echo 'No virtual device found ready for PVR or already mounted'
WriteToLog 'No virtual device found ready for PVR or already mounted' 1
fi
fi
WriteToLog 'End Record to Network Share script (80_80_record_to_nwshare.init)' 1
;;
stop)
echo "pls request it on forum"
;;
status)
echo "pls request it on forum"
;;
*)
echo "Usage: $0 {start|stop|status}" 1>&2
exit 0
;;
esac
Can anyone tell my how to Change These Files to make it run?!