comparison resources/initd-bela @ 309:6b717992c8d2 prerelease

Add script for /etc/init.d/
author andrewm
date Fri, 27 May 2016 18:26:45 +0100
parents
children db1714fe2814
comparison
equal deleted inserted replaced
308:1feb9c23ac57 309:6b717992c8d2
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