On Fri, Aug 15, 2014 at 1:48 PM, Jason Lange <[email protected]> wrote: > Hello, > > I've had similar problems, and similar frustration with existing > instructions. > > My workaround was to put this line in /etc/rc.local: > > /usr/local/bin/startSPI.sh > /dev/null & > > I believe that the output redirect and the & will prevent this line from > hanging initiation if anything goes wrong. But I don't know for sure... > (anyone care to comment?) > > ...and adding a startSPI.sh in /usr/local/bin/ with contents like this: > > #!/bin/bash > > echo CUSTOM-SPIDEV0 > /sys/devices/bone_capemgr.*/slots > echo CUSTOM-SPIDEV1 > /sys/devices/bone_capemgr.*/slots > > exit > > Note: the shebang line calls /bin/bash not /bin/sh. /bin/sh --> /bin/dash > in debian and it didn't like the wild-card * which I believe might be > necessary... (anyone care to comment?
I get away with it: https://github.com/RobertCNelson/omap-image-builder/blob/master/target/init_scripts/capemgr-debian.sh#L19 Regards, -- Robert Nelson http://www.rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
