Mercurial > hg > beaglert
annotate resources/initd-bela @ 351:09397ded8966 prerelease
merge
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 08 Jun 2016 02:00:17 +0100 |
parents | 6b717992c8d2 |
children | db1714fe2814 |
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@309 | 16 sh BeagleRT_startup.sh |
andrewm@309 | 17 sh BeagleRT_node.sh |
andrewm@309 | 18 ;; |
andrewm@309 | 19 stop) |
andrewm@309 | 20 pkill BeagleRT |
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 |