raspi b+/debian stretch script updates

pull/827/merge^2
Adrian Batzill 2019-06-15 21:03:56 +02:00
rodzic c0474319db
commit 69fd90c94a
4 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -19,7 +19,7 @@ xgen_gdl90:
fancontrol:
go get -t -d -v ./main
go build $(BUILDINFO_STATIC) -p 4 main/fancontrol.go main/equations.go main/cputemp.go
go build $(BUILDINFO) -p 4 main/fancontrol.go main/equations.go main/cputemp.go
xdump1090:
git submodule update --init

Wyświetl plik

@ -75,8 +75,11 @@ function ap-start {
#get the first 3 octets of the MAC(XX:XX:XX) at wlan0
wlan0mac=$(head -c 8 /sys/class/net/wlan0/address)
# Is there an Edimax Mac Address at wlan0
if [[ ${edimaxMac[*]} =~ "$wlan0mac" ]]; then
# debian stretch+ will support edimax dongle natively
osver=$(cat /etc/debian_version)
# Is there an Edimax Mac Address at wlan0 and debian version is jessie
if [[ ${edimaxMac[*]} =~ "$wlan0mac" ]] && [[ "$osver" =~ ^8.* ]]; then
DAEMON_CONF=/etc/hostapd/hostapd-edimax.conf
DAEMON_SBIN=/usr/sbin/hostapd-edimax
wLog "Edimax Dongle found at WLAN0. Using Edimad conf files $DAEMON_SBIN : $DAEMON_CONF"

Wyświetl plik

@ -42,6 +42,9 @@ cp image/logrotate.conf work/bin/
cp image/logrotate_d_stratux work/bin/
cp image/rsyslog_d_stratux work/bin/
# WiringPi doesn't allow static linking any more, so we deploy the shared library aswell
cp /usr/local/lib/libwiringPi.so work/bin/
cp test-data/ahrs/ahrs_table.log work/bin/
cp ahrs_approx work/bin/

Wyświetl plik

@ -81,6 +81,9 @@ chmod 755 /usr/bin/fancontrol
cp -f dump1090 /usr/bin/
chmod 755 /usr/bin/dump1090
# Install libwiringpi
cp -f libwiringPi.so /usr/local/lib/
# AHRS approx data.
cp -f ahrs_table.log /root/
cp -f ahrs_approx /usr/bin/