View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#113
Originally Posted by Graham Cobb View Post
I have been bitten by the N810 device names changing with/without the removable card present but I think I have found a solution. I have put the following code at the top of my bootmenu.conf:

Code:
# Set up card names by model                                                                                                         
# Assume 770                                                                                                                         
INT_CARD=""                                                                                                                          
EXT_CARD="mmcblk0"                                                                                                                   
...
This has only been tested on my N810 but it works there. Would someone with an N800 like to test it as well?

Maybe Frantisek could consider adding the device name logic to the standard bootmenu.sh and we could all just use the device name variables in our bootmenu.conf?
Hi,

here is version that I'd like to put to boomenu.sh
Code:
INT_CARD=""
EXT_CARD=""
case `grep product /proc/component_version` in
*SU-18)
        [ -d /sys/block/mmcblk0 ] && EXT_CARD="mmcblk0"
        ;;
*RX-*)
        for i in mmcblk0 mmcblk1 ; do
        if [ -d /sys/block/$i ] ; then
        case `cat /sys/block/$i/device/../slot_name` in
                internal) INT_CARD=$i ;;
                external) EXT_CARD=$i ;;
        esac
        fi
        done
        ;;
esac
Anyone wants to put it to beginning of their bootmenu.conf instead of Graham's code and report how it works? Seems to work here with N810 and 770 at least. Should work with N800 too.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.