Skip to content

Commit

Permalink
chore: skip installing udev rules, when rules directory is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 10, 2024
1 parent 5dcf6ac commit 1a28b2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pi-image/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ else
fi

# update some tooling
cp satellite/assets/linux/50-satellite.rules /etc/udev/rules.d/
udevadm control --reload-rules || true
if [ -d "/etc/udev/rules.d/" ]; then
cp satellite/assets/linux/50-satellite.rules /etc/udev/rules.d/
udevadm control --reload-rules || true
else

# update startup script
cp pi-image/satellite.service /etc/systemd/system
Expand Down

0 comments on commit 1a28b2f

Please sign in to comment.