#!/bin/sh
#
# Load SPI modules
#

start() {
	printf "Load SPI kernel modules: "

	modprobe spi-bcm2835
	modprobe spidev

	echo "OK"
}

stop() {
	return 0
}

restart() {
	stop
	start
}

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart|reload)
  	restart
	;;
  *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?
