rename SamyGo Virt. USB?

Support for C series TVs that all user could ask. Please do not ask a questions at other forums.

manitwo
Posts: 7
Joined: Sat Feb 18, 2012 10:34 am

Re: rename SamyGo Virt. USB?

Post 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? :o

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.
petrmalina
Posts: 1
Joined: Thu Oct 09, 2014 10:33 pm

Re: rename SamyGo Virt. USB?

Post 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
User avatar
beatfreak
SamyGO Project Donor
Posts: 597
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: rename SamyGo Virt. USB?

Post 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)
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS // >> decommissioned due to tuner death
//UE46F8090 @ T-FXPDEUC 1136 // rooted by new Widget // root starting with empty usb drive
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
User avatar
fluffi444
SamyGO Project Donor
Posts: 568
Joined: Fri Apr 05, 2013 9:55 pm
Location: Germany

Re: rename SamyGo Virt. USB?

Post 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...
TV: UE40ES7000 @ UE40ES8090 - T-ECPDEUC-2022.0 // SamyGO
CI+: Unicam EVO 4 with HD+ (HD02) @ Pacific 4.60
NET: Samba: PC

Post Reply

Return to “[C] Support”