View Single Post
Posts: 306 | Thanked: 566 times | Joined on Jan 2010 @ Romania
#968
Originally Posted by pali View Post
patched ke-recv now can automount usb devices (like sd card), see: http://talk.maemo.org/showpost.php?p...&postcount=152
i don't know what is "the best, RightWay,.." ke-recv or udev rules.
now, i use for myself an udev rule for automount. because i am lazy* the rule point to a custom variant of original h-e-n mount routine and my actual host script ( v2, not public yet ) don't have any mount call.
for same ( * ) reason cdrom rule ( sr* ) is missing
it look like
Code:
KERNEL=="sd*[1-9]",ACTION=="add",RUN+="/opt/host/mount.sh -M %k"
saved in /etc/udev/rules.d directory as 94-automount.rules
"run" section can be modified to point mmount program and above rule is a start point for what the rule should be.
i prefer this because it's easy to be modified

I propose that the ke-recv to handle battery charging, usb type detection is there and boost check also can be, to trigger charging mode.
__________________
Automatic speed Hostmode

Last edited by blue_led; 2012-01-16 at 16:48.
 

The Following 3 Users Say Thank You to blue_led For This Useful Post: