Skip to content

Commit

Permalink
Update install.sh: check for raspistill on Bullseye
Browse files Browse the repository at this point in the history
Fixes #2900
  • Loading branch information
EricClaeys authored Aug 2, 2023
1 parent 9cb9cdf commit 3604f7a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,19 @@ select_camera_type()
STATUS_VARIABLES+=("CAMERA_TYPE='${CAMERA_TYPE}'\n")
}

####
# If the raspistill command exists on post-Buster releases,
# rename it so it's not used.
check_for_raspistill()
{
STATUS_VARIABLES+=("check_for_raspistill='true'\n")

if W="$( which raspistill )" && [[ ${OS} != "buster" ]]; then
echo display_msg --longonly info "Renaming 'raspistill' on ${OS}."
echo sudo mv "${W}" "${W}-OLD"
fi
}


####
# Create the file that defines the WebUI variables.
Expand Down Expand Up @@ -2796,6 +2809,9 @@ display_image "InstallationInProgress"
##### Prompt for the camera type
[[ ${select_camera_type} != "true" ]] && select_camera_type

##### If raspistill exists on post-Buster OS, rename it.
[[ ${check_for_raspistill} != "true" ]] && check_for_raspistill

##### Get the new host name
[[ ${prompt_for_hostname} != "true" ]] && prompt_for_hostname

Expand Down

0 comments on commit 3604f7a

Please sign in to comment.