Skip to content

Commit

Permalink
Move rc.local commands to script file
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlou05 committed Nov 30, 2024
1 parent 0d5218a commit 2a9bd1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
File renamed without changes.
4 changes: 4 additions & 0 deletions picam.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd /home/warg/image-collection
python picam.py &
6 changes: 3 additions & 3 deletions rc.local.copyme
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

# OpenCV Python (preferred)
chmod +x /home/warg/image-collection/run.sh # Update to actual path
/home/warg/image-collection/run.sh # Update to actual path
/home/warg/image-collection/opencv.sh # Update to actual path

# FFMPEG video (backup)
chmod +x /home/warg/image-collection/video.sh
/home/warg/image-collection/video.sh

# Picamera2 (for use with RPi 5 and Picamera)
cd /home/warg/image-collection
python picam.py &
chmod +x /home/warg/image-collection/picam.sh
/home/warg/image-collection/picam.sh

0 comments on commit 2a9bd1e

Please sign in to comment.