From 80e4ce0b004d71a16dc6b2807c801ee1398f64ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=AB=8B=E6=96=B0?= Date: Tue, 22 Feb 2022 10:12:39 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E9=85=8D=E7=BD=AE=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E4=B8=BB=E7=A8=8B=E5=BA=8F=202=E3=80=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=BC=80=E5=8F=8A=E8=87=AA=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/config/LocationCali.php | 1 + html/config/calibrate.php | 2 +- html/config/location.php | 1 + othersoft/install.sh | 2 ++ root/Mywathdog.sh | 2 +- root/start.sh | 8 ++++++++ 6 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 root/start.sh diff --git a/html/config/LocationCali.php b/html/config/LocationCali.php index 5ee1596..40f4a53 100644 --- a/html/config/LocationCali.php +++ b/html/config/LocationCali.php @@ -9,6 +9,7 @@ ob_end_clean();//清空(擦除)缓冲区并关闭输出缓冲 ob_implicit_flush(1);//将打开或关闭绝对(隐式)刷送。绝对(隐式)刷送将导致在每次输出调用后有一次刷送操作,以便不再需要对 flush() 的显式调用 system("sudo gpio mode 1 out"); system("sudo gpio write 1 1"); +system("sudo pkill TowerOptoSifAndSpectral"); system("sudo pkill shutter_calibrate"); diff --git a/html/config/calibrate.php b/html/config/calibrate.php index 3b00815..941fea3 100644 --- a/html/config/calibrate.php +++ b/html/config/calibrate.php @@ -34,7 +34,7 @@ $numberofFS=0; - +system("sudo pkill TowerOptoSifAndSpectral"); system("sudo pkill ocean_optics_calibration_console"); system("sudo gpio write 1 1"); $cmd=""; diff --git a/html/config/location.php b/html/config/location.php index 82f9875..8536a0f 100644 --- a/html/config/location.php +++ b/html/config/location.php @@ -13,6 +13,7 @@ ob_implicit_flush(1);//将打开或关闭绝对(隐式)刷送。绝对(隐 //echo shell_exec("D:\\03MyGit\\linux\\movingliner\\cmake-build-debug-mingw\\movingliner.exe"); //$cmd = 'ping 127.0.0.1'; //sy"" +system("sudo pkill TowerOptoSifAndSpectral"); system("sudo pkill movingliner"); Echo $a; $cmd = 'sudo /home/pi/bin/movingliner '.$a; diff --git a/othersoft/install.sh b/othersoft/install.sh index 52f9fc1..4da70d0 100644 --- a/othersoft/install.sh +++ b/othersoft/install.sh @@ -33,6 +33,8 @@ cd ./build cp TowerOptoSifAndSpectral /home/pi/bin cd ../ cp ./root/Mywathdog.sh /root +cp ./root/start.sh /root +chmod +x /root/start.sh mkdir /home/data diff --git a/root/Mywathdog.sh b/root/Mywathdog.sh index 9cda7e9..e4a269e 100644 --- a/root/Mywathdog.sh +++ b/root/Mywathdog.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash while true do time=`date +%H:%M:%S` diff --git a/root/start.sh b/root/start.sh new file mode 100644 index 0000000..b9a4dae --- /dev/null +++ b/root/start.sh @@ -0,0 +1,8 @@ +chmod +x /root/filebrew/filebrowser +/root/filebrew/filebrowser -d /root/filebrew/filebrowser.db & +chmod +x /root/frp_0.34.3_linux_arm/frpc +chmod +x /root/ffwatch.sh +/root/ffwatch.sh & +chmod +x /root/Mywathdog.sh +/root/Mywathdog.sh & +