Mercurial > hg > beaglert
annotate resources/initd-bela @ 478:cb875406a594 prerelease
Makefile does syntax check of the project files only (ignores core)
| author | Giulio Moro <giuliomoro@yahoo.it> | 
|---|---|
| date | Mon, 20 Jun 2016 21:38:57 +0100 | 
| parents | 5587d7fa0108 | 
| children | 
| rev | line source | 
|---|---|
| andrewm@309 | 1 #! /bin/sh | 
| andrewm@309 | 2 # /etc/init.d/bela | 
| andrewm@309 | 3 # | 
| andrewm@309 | 4 | 
| andrewm@309 | 5 # Some things that run always | 
| andrewm@309 | 6 # ...nothing to do here | 
| andrewm@309 | 7 | 
| andrewm@309 | 8 # Carry out specific functions when asked to by the system | 
| andrewm@309 | 9 case "$1" in | 
| andrewm@309 | 10 start) | 
| andrewm@309 | 11 echo "Adding Bela PRU Overlay..." | 
| andrewm@309 | 12 echo BB-BONE-PRU-BELA > /sys/devices/bone_capemgr.9/slots | 
| andrewm@309 | 13 echo "Adding Bela Audio Cape Overlay..." | 
| andrewm@309 | 14 echo BB-BONE-BAREAUDI-02 > /sys/devices/bone_capemgr.9/slots | 
| andrewm@309 | 15 cd /root | 
| andrewm@391 | 16 sh Bela_startup.sh | 
| andrewm@391 | 17 sh Bela_node.sh | 
| andrewm@309 | 18 ;; | 
| andrewm@309 | 19 stop) | 
| andrewm@392 | 20 cd /root/Bela && make stop | 
| andrewm@309 | 21 ;; | 
| andrewm@309 | 22 *) | 
| andrewm@309 | 23 echo "Usage: /etc/init.d/bela {start|stop}" | 
| andrewm@309 | 24 exit 1 | 
| andrewm@309 | 25 ;; | 
| andrewm@309 | 26 esac | 
| andrewm@309 | 27 | 
| andrewm@309 | 28 exit 0 | 
