# HG changeset patch # User andrewm # Date 1464370005 -3600 # Node ID 6b717992c8d29b9a3fea422ff376aae5c3119250 # Parent 1feb9c23ac57e8540e44eed46be5c3eea6bd6acd Add script for /etc/init.d/ diff -r 1feb9c23ac57 -r 6b717992c8d2 resources/initd-bela --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/resources/initd-bela Fri May 27 18:26:45 2016 +0100 @@ -0,0 +1,28 @@ +#! /bin/sh +# /etc/init.d/bela +# + +# Some things that run always +# ...nothing to do here + +# Carry out specific functions when asked to by the system +case "$1" in + start) + echo "Adding Bela PRU Overlay..." + echo BB-BONE-PRU-BELA > /sys/devices/bone_capemgr.9/slots + echo "Adding Bela Audio Cape Overlay..." + echo BB-BONE-BAREAUDI-02 > /sys/devices/bone_capemgr.9/slots + cd /root + sh BeagleRT_startup.sh + sh BeagleRT_node.sh + ;; + stop) + pkill BeagleRT + ;; + *) + echo "Usage: /etc/init.d/bela {start|stop}" + exit 1 + ;; +esac + +exit 0