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