kopia lustrzana https://github.com/cyoung/stratux
rodzic
75aaea1430
commit
a408a8cf13
|
@ -15,8 +15,8 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
stratuxVersion = "v0.1"
|
stratuxVersion = "v0.1"
|
||||||
configLocation = "stratux.conf"
|
configLocation = "/etc/stratux.conf"
|
||||||
ipadAddr = "192.168.1.255:4000" // Port 4000 for FreeFlight RANGR.
|
ipadAddr = "192.168.10.255:4000" // Port 4000 for FreeFlight RANGR.
|
||||||
maxDatagramSize = 8192
|
maxDatagramSize = 8192
|
||||||
UPLINK_BLOCK_DATA_BITS = 576
|
UPLINK_BLOCK_DATA_BITS = 576
|
||||||
UPLINK_BLOCK_BITS = (UPLINK_BLOCK_DATA_BITS + 160)
|
UPLINK_BLOCK_BITS = (UPLINK_BLOCK_DATA_BITS + 160)
|
||||||
|
|
|
@ -67,10 +67,6 @@ echo blacklist rtl2832 >>/etc/modprobe.d/rtl-sdr-blacklist.conf
|
||||||
echo "# prevent power down of wireless when idle" >>/etc/modprobe.d/8192cu.conf
|
echo "# prevent power down of wireless when idle" >>/etc/modprobe.d/8192cu.conf
|
||||||
echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" >>/etc/modprobe.d/8192cu.conf
|
echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" >>/etc/modprobe.d/8192cu.conf
|
||||||
|
|
||||||
#usb hub power
|
|
||||||
echo "max_usb_current=1" >>/boot/config.txt
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "*** STRATUX COMPILE/PACKAGE INSTALL ***"
|
echo "*** STRATUX COMPILE/PACKAGE INSTALL ***"
|
||||||
|
@ -103,14 +99,12 @@ cp dump1090 /usr/bin/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo " - Stratux"
|
echo " - Stratux"
|
||||||
|
|
||||||
|
scp_in_to_qemu /root/spindle/gen_gdl90 /tmp/gen_gdl90
|
||||||
|
|
||||||
ssh_in_to_qemu chroot /mnt sh -l -ex - <<\EOF
|
ssh_in_to_qemu chroot /mnt sh -l -ex - <<\EOF
|
||||||
apt-get install -y golang-go
|
|
||||||
cd /root
|
cd /root
|
||||||
|
|
||||||
mkdir /root/go
|
|
||||||
export GOPATH=/root/go
|
|
||||||
|
|
||||||
|
|
||||||
rm -rf stratux
|
rm -rf stratux
|
||||||
git clone https://github.com/cyoung/stratux
|
git clone https://github.com/cyoung/stratux
|
||||||
cd stratux
|
cd stratux
|
||||||
|
@ -118,12 +112,9 @@ cd dump978
|
||||||
make
|
make
|
||||||
cp dump978 /usr/bin/
|
cp dump978 /usr/bin/
|
||||||
cd ..
|
cd ..
|
||||||
go build gen_gdl90.go
|
|
||||||
|
|
||||||
go get github.com/sevlyar/go-daemon
|
mv /tmp/gen_gdl90 /usr/bin/gen_gdl90
|
||||||
go build 1090es_relay.go
|
chmod +x /usr/bin/gen_gdl90
|
||||||
|
|
||||||
cp gen_gdl90 /usr/bin/
|
|
||||||
cp start_uat.sh /usr/bin/start_uat
|
cp start_uat.sh /usr/bin/start_uat
|
||||||
cp init.d-stratux /etc/init.d/stratux
|
cp init.d-stratux /etc/init.d/stratux
|
||||||
cp start_stratux.sh /usr/sbin/stratux
|
cp start_stratux.sh /usr/sbin/stratux
|
||||||
|
@ -132,7 +123,15 @@ chmod 755 /usr/sbin/stratux
|
||||||
chmod 755 /etc/init.d/stratux
|
chmod 755 /etc/init.d/stratux
|
||||||
ln -s /etc/init.d/stratux /etc/rc2.d/S01stratux
|
ln -s /etc/init.d/stratux /etc/rc2.d/S01stratux
|
||||||
ln -s /etc/init.d/stratux /etc/rc6.d/K01stratux
|
ln -s /etc/init.d/stratux /etc/rc6.d/K01stratux
|
||||||
|
|
||||||
|
echo -n '{"UAT_Enabled":false,"ES_Enabled":true,"GPS_Enabled":true}' >/etc/stratux.conf
|
||||||
|
|
||||||
update-rc.d stratux enable
|
update-rc.d stratux enable
|
||||||
|
|
||||||
|
#usb hub power
|
||||||
|
echo "max_usb_current=1" >>/boot/config.txt
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "**** END STRATUX SETUP *****"
|
echo "**** END STRATUX SETUP *****"
|
||||||
|
|
Ładowanie…
Reference in New Issue