This commit is contained in:
2025-10-15 12:12:21 +08:00
commit 5626528edc
32 changed files with 15599 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
all:start
start:
g++ -g -o start start.cpp
mv start ../bin
clean:
rm -rf start

View File

@@ -0,0 +1,39 @@
/*
本程序为BSD服务启动程序,主要用于进行BSD系统的服务启动
*/
#include <iostream>
using namespace std;
int main(int argc, char **argv)
{
if (argc != 2)
{
cout << "Using:./start start/stop" << endl;
return -1;
}
string commnd = "";
string action(argv[1]);
if (action == "start")
{
commnd = "echo 'orangepi' | sh /home/orangepi/RKApp/StartService/bin/start.sh";
}
else if(action == "stop")
{
commnd = "echo 'orangepi' | sh /home/orangepi/RKApp/StartService/bin/stop.sh";
}
else
{
cout << "Unknown action: " << action << "\nUsing: ./start start|stop" << endl;
return -1;
}
system(commnd.c_str());
//启动摄像头
system("sh /home/orangepi/Desktop/YoloStart.sh");
return 0;
}