Skip to content

Commit 5c040f2

Browse files
authored
fix: add bookworm support (#195)
1 parent b85de7b commit 5c040f2

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

bin/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fi
3939
# Camera-streamer repo
4040
CSTREAMER_PATH="camera-streamer"
4141
if [[ -z "${CROWSNEST_CAMERA_STREAMER_REPO_SHIP}" ]]; then
42-
CROWSNEST_CAMERA_STREAMER_REPO_SHIP="https://github.com/ayufan-research/camera-streamer.git"
42+
CROWSNEST_CAMERA_STREAMER_REPO_SHIP="https://github.com/ayufan/camera-streamer.git"
4343
fi
4444
if [[ -z "${CROWSNEST_CAMERA_STREAMER_REPO_BRANCH}" ]]; then
4545
CROWSNEST_CAMERA_STREAMER_REPO_BRANCH="master"

tools/configure.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CN_CONFIG_ENVPATH="${CN_CONFIG_ROOTPATH}/systemd"
2828
CN_MOONRAKER_CONFIG_PATH="${CN_CONFIG_CONFIGPATH}/moonraker.conf"
2929
CN_USTREAMER_REPO="https://github.com/pikvm/ustreamer.git"
3030
CN_USTREAMER_BRANCH="master"
31-
CN_CAMERA_STREAMER_REPO="https://github.com/ayufan-research/camera-streamer.git"
31+
CN_CAMERA_STREAMER_REPO="https://github.com/ayufan/camera-streamer.git"
3232
CN_CAMERA_STREAMER_BRANCH="master"
3333

3434
### Messages

tools/install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ main() {
128128

129129
add_group_video
130130

131+
if [[ "$(is_bookworm)" = "1" ]]; then
132+
msg "Bookworm detected!"
133+
msg "Using main branch of camera-streamer for Bookworm..."
134+
CROWSNEST_CAMERA_STREAMER_REPO_BRANCH="main"
135+
fi
136+
131137
build_apps
132138

133139
if [[ "${CROWSNEST_UNATTENDED}" = "0" ]]; then

tools/libs/core.sh

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ is_buster() {
3434
fi
3535
}
3636

37+
is_bookworm() {
38+
if [[ -f /etc/os-release ]]; then
39+
grep -cq "bookworm" /etc/os-release &> /dev/null && echo "1" || echo "0"
40+
fi
41+
}
42+
3743
is_raspbian() {
3844
if [[ -f /boot/config.txt ]] && [[ -f /etc/rpi-issue ]]; then
3945
echo "1"

0 commit comments

Comments
 (0)