You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
316 B
36 lines
316 B
|
8 years ago
|
#!/bin/sh
|
||
|
|
#
|
||
|
|
# Load SPI modules
|
||
|
|
#
|
||
|
|
|
||
|
|
start() {
|
||
|
|
printf "Load SPI kernel modules: "
|
||
|
|
|
||
|
|
modprobe spi-bcm2835
|
||
|
|
modprobe spidev
|
||
|
|
}
|
||
|
|
stop() {
|
||
|
|
}
|
||
|
|
|
||
|
|
restart() {
|
||
|
|
stop
|
||
|
|
start
|
||
|
|
}
|
||
|
|
|
||
|
|
case "$1" in
|
||
|
|
start)
|
||
|
|
start
|
||
|
|
;;
|
||
|
|
stop)
|
||
|
|
stop
|
||
|
|
;;
|
||
|
|
restart|reload)
|
||
|
|
restart
|
||
|
|
;;
|
||
|
|
*)
|
||
|
|
echo "Usage: $0 {start|stop|restart}"
|
||
|
|
exit 1
|
||
|
|
esac
|
||
|
|
|
||
|
|
exit $?
|