My Script looks like this:
Code: Select all
#!/bin/sh
SMB="/dtv/usb/smb"
Module="/mtd_rwarea/modules"
IP="//WINDOWS_PC_IP_ADRESS"
User="YOUR WINDOWS USERNAME"
Password="YOUR WINDOWS PASSOWRD"
#Install Kernel Modules for smb
dd if=/dev/zero of=/dtv/vusb bs=512 count=4
insmod /mtd_rwarea/modules/dummy_hcd.ko
sleep 3
insmod /mtd_rwarea/modules/g_file_storage.ko
sleep 3
echo -e "[sdh]
Vendor : CifsMount
Product : Virtual USB
Serial : Q80VQLFH
Devpath : 8
Lun : 0
MountDir : /dtv/usb/smb
FileSystem : vfat
" >> /dtv/usb/log
insmod /mtd_rwarea/modules/cifs.ko
sleep 3
#Create Folder for VUSB-Mountpoints
mkdir -p $SMB
#========================================================
# Mounting the shares
#========================================================
if [ `mount | grep -c $SMB/Multimedia` == 0 ]; then
mkdir -p $SMB/Multimedia
mount -o user=$User,password=$Password -t cifs $IP/Sharename
fi
.
.
.
.
I think in the given script is the name of the vusb in the vusb.image file and you cannot change it.