IMPORTANT: this change has a docs/UPDATING entry! This rename is unfortunately necessary because NetBSD has decided to create its own service(8) utility, and we will want to import theirs as well. The two can obviously not coexist. Also move ours from /bin to /sbin, as it is a superuser-only utility. Change-Id: Ic6e46ffb3a84b4747d2fdcb0d74e62dbea065039
21 lines
824 B
Bash
21 lines
824 B
Bash
#!/bin/sh
|
|
#
|
|
# Start-up script for the BeagleBone Weather cape.
|
|
|
|
# TSL2550 Ambient Light Sensor
|
|
test -e /dev/tsl2550b3s39 || (cd /dev && MAKEDEV tsl2550b3s39)
|
|
/sbin/minix-service up /service/tsl2550 -dev /dev/tsl2550b3s39 \
|
|
-label tsl2550.3.39 -args 'bus=3 address=0x39' && echo -n " tsl2550"
|
|
|
|
# SHT21 Temperature and Humidity Sensor
|
|
test -e /dev/sht21b3s40 || (cd /dev && MAKEDEV sht21b3s40)
|
|
/sbin/minix-service up /service/sht21 -dev /dev/sht21b3s40 \
|
|
-label sht21.3.40 -args 'bus=3 address=0x40' && echo -n " sht21"
|
|
|
|
# BMP085 Temperature and Pressure Sensor
|
|
test -e /dev/bmp085b3s77 || (cd /dev && MAKEDEV bmp085b3s77)
|
|
/sbin/minix-service up /service/bmp085 -dev /dev/bmp085b3s77 \
|
|
-label bmp085.3.77 -args 'bus=3 address=0x77' && echo -n " bmp085"
|
|
|
|
daemonize tcpd http /usr/share/beaglebone/weather/weatherstation.lua
|