kopia lustrzana https://github.com/cyoung/stratux
rodzic
5ae514e5ce
commit
0264383389
|
@ -62,8 +62,14 @@ chmod 755 mnt/usr/sbin/sdr-tool.sh
|
|||
cp -f 99-uavionix.rules mnt/etc/udev/rules.d
|
||||
|
||||
#fan/temp control script
|
||||
cp fancontrol.py mnt/usr/bin/
|
||||
chmod 755 mnt/usr/bin/fancontrol.py
|
||||
#remove old script
|
||||
rm -rf mnt/usr/bin/fancontrol.py
|
||||
#install new program
|
||||
cp ../fancontrol mnt/usr/bin
|
||||
chmod 755 mnt/usr/bin/fancontrol
|
||||
chroot mnt/ /usr/bin/fancontrol remove
|
||||
chroot mnt/ /usr/bin/fancontrol install
|
||||
|
||||
|
||||
#isc-dhcp-server config
|
||||
cp -f isc-dhcp-server mnt/etc/default/isc-dhcp-server
|
||||
|
@ -156,3 +162,5 @@ chroot mnt/ systemctl disable dhcpcd
|
|||
#disable hciuart - interferes with ttyAMA0 as a serial port.
|
||||
chroot mnt/ systemctl disable hciuart
|
||||
|
||||
#clean up for release images.
|
||||
rm -rf mnt/root/stratux mnt/root/go
|
||||
|
|
|
@ -16,6 +16,7 @@ make
|
|||
rm -rf work
|
||||
mkdir -p work/bin
|
||||
cp gen_gdl90 work/bin/
|
||||
cp fancontrol work/bin/
|
||||
cp libdump978.so work/bin/
|
||||
cp linux-mpu9150/libimu.so work/bin/
|
||||
cp __lib__systemd__system__stratux.service work/bin/
|
||||
|
@ -34,8 +35,8 @@ cp image/sdr-tool.sh work/bin/
|
|||
cp image/10-stratux.rules work/bin/
|
||||
cp image/99-uavionix.rules work/bin/
|
||||
cp image/motd work/bin/
|
||||
cp image/fancontrol.py work/bin/
|
||||
cp image/stratux-wifi.sh work/bin/
|
||||
cp image/rc.local work/bin/
|
||||
|
||||
#TODO: librtlsdr.
|
||||
cd work/
|
||||
|
|
|
@ -35,6 +35,9 @@ cp -f sdr-tool.sh /usr/sbin/
|
|||
#boot config
|
||||
cp -f config.txt /boot/config.txt
|
||||
|
||||
#rc.local
|
||||
cp -f rc.local /etc/
|
||||
|
||||
#disable serial console
|
||||
sed -i /boot/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"
|
||||
|
||||
|
@ -56,8 +59,13 @@ cp -f modules.txt /etc/modules
|
|||
cp -f motd /etc/motd
|
||||
|
||||
#fan control utility
|
||||
cp -f fancontrol.py /usr/bin/
|
||||
chmod 755 /usr/bin/fancontrol.py
|
||||
#remove old script
|
||||
rm -f /usr/bin/fancontrol.py
|
||||
#install new program
|
||||
cp -f fancontrol /usr/bin/
|
||||
chmod 755 /usr/bin/fancontrol
|
||||
/usr/bin/fancontrol remove
|
||||
/usr/bin/fancontrol install
|
||||
|
||||
cp -f dump1090 /usr/bin/
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue