Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi,
I'm new to the ffp and the dlink, but from what I understand scripts in the /ffp/start directory with execute permissions are executed on system start.
This script I've written (attached) to mount a USB HDD doesn't auto execute, BUT i can ssh into the box and run the script manually via
# /ffp/start/mount_USB_drives.sh
Why doesn't it just happen on start-up ... what have I forgotten?
Its located in /ffp/start (obviously)
owner: root
permissions: -rwxr-xr-x
Cheers for any help
PS I know its not the best script and has too much logging
Last edited by breasthead (2009-02-18 14:58:59)
Offline
breasthead wrote:
Why doesn't it just happen on start-up ... what have I forgotten?
Its located in /ffp/start (obviously)
owner: root
permissions: -rwxr-xr-x
I see your using #!/bin/sh.
Have you tried #!/ffp/bin/sh.
Offline
Ok, after a little more investigation, it does run on start-up, but still doesn't work ... The only thing I can think of is that the usb kernal that needs to be loaded, isn't finished loading before the script is run.
I have it setup so the kernals are loaded in /ffp/etc/fun_plug.local
I'm guessing that my mount script in /ffp/start is loaded before the fun_plug.local ?
I'll play around with moving the insmod commands to see if I can find the best place for them
Cheers for reading
B
Offline
fonz wrote:
What's 'wait 15' supposed to do? Did you mean 'sleep 15'?
Yeah, I already fixed that
Does anyone know how you can tell if the usb-storage.ko is finished loading?
Offline
breasthead wrote:
Does anyone know how you can tell if the usb-storage.ko is finished loading?
usb-storage.ko loads immediately, you're waiting for the disk to become accessible. Look here for a script that polls /proc/partitions:
http://dns323.kood.org/forum/p3521-2007 … html#p3521
Offline