Page 2 of 2
Re: rename SamyGo Virt. USB?
Posted: Sat Feb 18, 2012 9:08 pm
by manitwo
Yes, it is a "noname 2cent" stick. Ok, cannot be fixed. Women can learn too
Isn?t it so that i need the vusb to record to NAS? I thought it is so. Is there a way to do without vusb?
Update:
After i changed the name in g_file_storage.ko it wasn?t possible to record to NAS. (Errormessage: USB HDD is suggested)
Then i also changed in file 02_04_vusb.init the name to same in g_file_storage.ko and it works.
Re: rename SamyGo Virt. USB?
Posted: Thu Oct 09, 2014 11:47 pm
by petrmalina
I've created a script that just renames the "Product" line in the /dtv/usb/log file. Working really well, no hex-coding involved.
I have an EXT3 HHD connected to the TV all the time, accessible by Samba share and Fuse that's scanning public network drives (on my desktop or laptop).
cat /mtd_tlib/GGame/SamyGO/etc/init.d/90_91_usb-names.init
Code: Select all
#!/bin/sh
. /dtv/SGO.env
case $1 in
start)
while read line; do
search=`echo $line | cut -d"|" -f1`
replace=`echo $line | cut -d"|" -f2`
echo "$search => $replace"
sed -i "s/$search/$replace/g" "/dtv/usb/log"
sed -i "s/\[sd/\[sdx/g" "/dtv/usb/log"
sleep 2
sed -i "s/\[sdx/\[sd/g" "/dtv/usb/log"
done </mtd_tlib/GGame/SamyGO/etc/usbnames
;;
stop)
echo "Nothing to do"
;;
status)
echo "Ask root"
;;
*)
echo "Usage: $0 {start|stop|status}" 1>&2
exit 0
;;
esac
cat /mtd_tlib/GGame/SamyGO/etc/usbnames
Code: Select all
00AAKS-08V0A0|External drive
SamyGO Virt. USB|Network shares
Re: rename SamyGo Virt. USB?
Posted: Sat Oct 11, 2014 2:23 pm
by beatfreak
another way to get around this problem would be to adapt your how-to with specifying the icon for the VirtualUSB, the XFS drive for recording is displayed as a black drive while the "normal" ones are white IIRC, if your normal drive is <1,5GB you could format it as xfs and adapt the scripts to use it as mountpoint for your record share, and to hold your samygo folder (don't forget to set permissions when using linux fs)
Re: rename SamyGo Virt. USB?
Posted: Sat Oct 11, 2014 2:41 pm
by fluffi444
Great Way! Will try this for ES-Series also... Looks like the only difference it the file to use is "USBLOG" instead of "LOG"
EDIT
Works also on ES-Series (with file dtv/usb/usblog)
NICE! and big thx! Finally annoying name can be changed easily...