On Wed, Mar 12, 2014 at 4:58 PM, Bit Pusher <[email protected]> wrote:
> Robert once again thanks. In your script:
>
> start on runlevel 2
> script
> if test -f /etc/default/capemgr; then
> . /etc/default/capemgr
> fi
> capemgr=$(ls /sys/devices/bone_capemgr.*/slots 2> /dev/null || true)
> if [ ! "x${CAPE}" = "x" ] ; then
> if [ ! "x${capemgr}" = "x" ] ; then
> echo ${CAPE} > ${capemgr}
> fi
> fi
> end script
>
>
> I believe "capemgr=$(ls /sys/devices/bone_capemgr.*/slots 2> /dev/null ||
> true)" is to resolve whether it is bone_capemgr.8 or .9
> but I can not figure out how ${CAPE} is set? Thanks again.

Oh i have it setup to define "CAPE" in /etc/default/capemgr

like:
https://github.com/RobertCNelson/omap-image-builder/blob/master/target/init_scripts/capemgr

No reason, other then it's common in a lot of debian init scripts to do that...

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.

Reply via email to