Note: When I try run this /etc/init.d/S99yolov5 start on terminal to test my script it work fine. But when I reboot, script look like not run or error.
This is my step:
Create a script in /etc/init.d/S99yolov5
chmod +x S99yolov5
reboot
This is my code in script
Code: Select all
#!/bin/sh
case $1 in
start)
echo "Starting..."
cd /Projects
/oem/usr/bin/RkLunch-stop.sh
/Projects/luckfox_pico_rtsp_yolov5
;;
stop)
echo "Stopping..."
;;
*)
exit 1
;;
esac