How to auto start a excute file when start up

  • Hello, will the startup script after adding environment variables to give it a try

    Code: Select all

    #!/bin/sh
    [ -f /etc/profile.d/RkEnv.sh ] && source /etc/profile.d/RkEnv.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
    
  • Hi, thank you, it work