@ray, is it possible to invoke *.autorun for optware in separate partition?
is it possible to invoke *.autorun for optware in separate partition?
I am not sure what you are really asking here. But every partition on mount runs its own *.autorun scripts. That's it. If you want the mounting of partition A to run the *.autorun scripts of partition B, then you can have a *.autorun script in partition A invoke the script in partition B but you have to be aware that partition B may not yet be mounted. So such a script should loop (and sleep a bit) checking for the availability of the other script before executing it. I am not entirely sure about the parallelism of this but I think it should work. Just try it.
This is regarding about your usb audio tutorial actually. Since my harddisk is organized into 3 partitions, namely, swap, optware, data. Putting the "autoruns-to-use" in /opt folder won't work and I can't put it in "/" parent either due to read only. Any remedy besides combining the 2 partition into one?
Note I am not Ray. But if your partitions are named swap, optware, and data then optware mounts as /mnt/optware so you can put the *.autorun in /mnt/optware/whatever.autorun.
My apology and thanks karog. That is my setting and it won't run on router reboot.
It absolutely should run on boot. Maybe there is some other problem with the script itself. Typical problems are end-of-line chars, no execute permissions, missing #!/bin/sh at top, filename not actually something.autorun, error in the contents of the script, etc. Can you run the script by hand?
Try making another very simple script with a name like test.autorun and contents
#!/bin/sh touch /mnt/optware/test
and see if it creates test.
problem. I don't have /mnt/optware. Fstab, label=optware has been linked to /opt. Will try using "touch /opt/test"
Result: After reboot, nothing happens. No "test" file created.
manual invocation of *.autorun, "sh /opt/audio-modules.autorun"
Ah. Curious. I don't know if *.autorun gets executed in that case. Sorry.
It is playing internet radio. Only way to make autorun works is to combine that 2 partitions, make it one big partition then install optware again, I guess. Thanks.
Or you could not use fstab, let it automount, and in the autorun script do
mount -o bind /mnt/optware /opt