comparison resources/initd-bela @ 314:611306d840b3 prerelease

Merge
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 27 May 2016 19:00:43 +0100
parents 6b717992c8d2
children db1714fe2814
comparison
equal deleted inserted replaced
313:c770cdf3d8b2 314:611306d840b3
1 #! /bin/sh
2 # /etc/init.d/bela
3 #
4
5 # Some things that run always
6 # ...nothing to do here
7
8 # Carry out specific functions when asked to by the system
9 case "$1" in
10 start)
11 echo "Adding Bela PRU Overlay..."
12 echo BB-BONE-PRU-BELA > /sys/devices/bone_capemgr.9/slots
13 echo "Adding Bela Audio Cape Overlay..."
14 echo BB-BONE-BAREAUDI-02 > /sys/devices/bone_capemgr.9/slots
15 cd /root
16 sh BeagleRT_startup.sh
17 sh BeagleRT_node.sh
18 ;;
19 stop)
20 pkill BeagleRT
21 ;;
22 *)
23 echo "Usage: /etc/init.d/bela {start|stop}"
24 exit 1
25 ;;
26 esac
27
28 exit 0