xref: /minix/etc/rc.capes/BB-BONE-WTHR-01 (revision 27852ebe)
1#!/bin/sh
2#
3# Start-up script for the BeagleBone Weather cape.
4
5# TSL2550 Ambient Light Sensor
6test -e /dev/tsl2550b3s39 || (cd /dev && MAKEDEV tsl2550b3s39)
7/sbin/minix-service up /service/tsl2550 -dev /dev/tsl2550b3s39 \
8	-label tsl2550.3.39 -args 'bus=3 address=0x39' && echo -n " tsl2550"
9
10# SHT21 Temperature and Humidity Sensor
11test -e /dev/sht21b3s40 || (cd /dev && MAKEDEV sht21b3s40)
12/sbin/minix-service up /service/sht21 -dev /dev/sht21b3s40 \
13	-label sht21.3.40 -args 'bus=3 address=0x40' && echo -n " sht21"
14
15# BMP085 Temperature and Pressure Sensor
16test -e /dev/bmp085b3s77 || (cd /dev && MAKEDEV bmp085b3s77)
17/sbin/minix-service up /service/bmp085 -dev /dev/bmp085b3s77 \
18	-label bmp085.3.77 -args 'bus=3 address=0x77' && echo -n " bmp085"
19
20daemonize tcpd http /usr/share/beaglebone/weather/weatherstation.lua
21