Il 05/02/2010 19:41, Steven Leeman ha scritto:
> perhaps /etc/hotplug.d/usb is an idea?

i tried but it doesn't work

r...@fonera:~# cat /etc/hotplug.d/usb/10-usb-start_services
[ "$ACTION" == "add" ] && {
    if [ -d $USB/opkg ]; then
        ngircd
        amule start
        knockd -i ppp0 &
        $USB/start_www.sh start
    fi
}
it checks if /tmp/mounts/Disc-A1 has the opkg dir and then executes some
commands.
it has right permissions but it doesn't work if i reboot the fonera or
if i reboot and then i plug the usb stick.

is the syntax correct? i copied the other file in /etc/hotplug.d/usb/

-- 
f.

  "E' in un giorno di pioggia che ti ho conosciuta
  e il vento dell'ovest rideva gentile..."
  (Modena City Ramblers)

http://fox.noblogs.org/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development

Reply via email to