-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d645c29
commit 3b31acb
Showing
6 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../etc/cont-init.d/01-mjpeg-streamer-config → root/etc/cont-init.d/01-mjpg-streamer-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
: "${ENABLE_MJPEG_STREAMER:=false}" | ||
: "${ENABLE_MJPG_STREAMER:=false}" | ||
|
||
# disable mjpg-streamer service if not enabled | ||
if ! $ENABLE_MJPEG_STREAMER; then | ||
if ! $ENABLE_MJPG_STREAMER; then | ||
rm -rf /etc/services.d/mjpg-streamer | ||
fi |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/usr/bin/with-contenv sh | ||
|
||
if [ -n "$STREAMER_FLAGS" ]; then | ||
echo "Deprecation warning: the environment variable '\$STREAMER_FLAGS' was renamed to '\$MJPEG_STREAMER_INPUT'" | ||
if [ -n "$MJPEG_STREAMER_INPUT" ]; then | ||
echo "Deprecation warning: the environment variable '\$MJPEG_STREAMER_INPUT' was renamed to '\$MJPG_STREAMER_INPUT'" | ||
|
||
MJPEG_STREAMER_INPUT=$STREAMER_FLAGS | ||
MJPG_STREAMER_INPUT=$MJPEG_STREAMER_INPUT | ||
fi | ||
|
||
if ! expr "$MJPEG_STREAMER_INPUT" : ".*\.so.*" > /dev/null; then | ||
MJPEG_STREAMER_INPUT="input_uvc.so $MJPEG_STREAMER_INPUT" | ||
if ! expr "$MJPG_STREAMER_INPUT" : ".*\.so.*" > /dev/null; then | ||
MJPG_STREAMER_INPUT="input_uvc.so $MJPG_STREAMER_INPUT" | ||
fi | ||
|
||
exec mjpg_streamer \ | ||
-i "/usr/local/lib/mjpg-streamer/$MJPEG_STREAMER_INPUT -d $CAMERA_DEV" \ | ||
-i "/usr/local/lib/mjpg-streamer/$MJPG_STREAMER_INPUT -d $CAMERA_DEV" \ | ||
-o "/usr/local/lib/mjpg-streamer/output_http.so -w /usr/local/share/mjpg-streamer/www -p 8080" |