mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-12-16 11:33:31 +08:00
v2.1.3
This commit is contained in:
4
dpkg/control
Normal file
4
dpkg/control
Normal file
@ -0,0 +1,4 @@
|
||||
Package: TowerSif
|
||||
Architecture: armhf
|
||||
Maintainer: rlx, tc
|
||||
Description: test
|
||||
34
dpkg/postinst
Normal file
34
dpkg/postinst
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
##安装完执行
|
||||
echo "install airbornesystem ok"
|
||||
sed -i '/\/root\/start/d' /etc/rc.local
|
||||
sed -i '/^exit 0/i/root/start.sh &' /etc/rc.local
|
||||
sudo apt-get install -y timedatectl
|
||||
timedatectl set-timezone Asia/Shanghai
|
||||
date -R
|
||||
sudo hwclock -w -f /dev/rtc0
|
||||
#echo "/home/pi/AirbroneSystem/lib" > /etc/ld.so.conf.d/mylib.conf
|
||||
#echo "/home/pi/AirbroneSystem/libreh" > /etc/ld.so.conf.d/mylib1.conf
|
||||
## 获取系统内存信息,并提取总内存大小
|
||||
#total_memory=$(free -m | awk 'NR==2{print $2}')
|
||||
#
|
||||
## 设置阈值,3GB对应的是3072MB
|
||||
#threshold=3072
|
||||
#
|
||||
## 判断总内存是否大于3GB
|
||||
#if [ "$total_memory" -gt "$threshold" ]; then
|
||||
# echo "Memory is greater than 3GB"
|
||||
# rm /etc/udev/rules.d/12*
|
||||
# echo 'ACTION=="add",KERNELS=="6-1:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="ttySBGport"' > /etc/udev/rules.d/12-mybasem.rules
|
||||
#else
|
||||
# echo "Memory is not greater than 3GB Mybe M4B"
|
||||
# rm /etc/udev/rules.d/12*
|
||||
# echo 'ACTION=="add",KERNELS=="3-1:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="ttySBGport"' > /etc/udev/rules.d/12-mybasem4b.rules
|
||||
#
|
||||
#fi
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
# ldconfig
|
||||
#
|
||||
3
dpkg/postrm
Normal file
3
dpkg/postrm
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "thank you for use"
|
||||
#软件卸载后,执行该Shell脚本
|
||||
Reference in New Issue
Block a user