view resources/initd-bela @ 345:0e1e0dfe24c5 prerelease

Added embryonal support for digital messages with libpd. TODO: test it, only process used channels, add defines. It is quite CPU-intensive
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 07 Jun 2016 03:40:01 +0100
parents 6b717992c8d2
children db1714fe2814
line wrap: on
line source
#! /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