Skip to content

Commit

Permalink
set os-release ID to Raspbian
Browse files Browse the repository at this point in the history
  • Loading branch information
hilschernetpi committed Jun 8, 2020
1 parent f53177f commit 1a93f8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF

#version
ENV HILSCHERNETPI_RASPBIAN_VERSION 1.2.3
ENV HILSCHERNETPI_RASPBIAN_VERSION 1.2.4

#labeling
LABEL maintainer="netpi@hilscher.com" \
Expand Down Expand Up @@ -164,6 +164,7 @@ RUN apt-get update \
&& mkdir /etc/firmware \
&& curl -o /etc/firmware/BCM43430A1.hcd -L https://github.com/OpenELEC/misc-firmware/raw/master/firmware/brcm/BCM43430A1.hcd \
&& wget https://raw.githubusercontent.com/raspberrypi/firmware/1.20180417/opt/vc/bin/vcmailbox -O /opt/vc/bin/vcmailbox \
&& sudo sed -i 's@debian@Raspbian@g' -i /usr/lib/os-release \
&& apt-get remove git \
&& apt-get autoremove \
&& rm -rf /tmp/* \
Expand Down
2 changes: 1 addition & 1 deletion init.d/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ term_handler() {
trap 'kill ${!}; term_handler' SIGINT SIGKILL SIGTERM SIGQUIT SIGTSTP SIGSTOP SIGHUP

echo "starting SSH server ..."
if [ "SSHPORT" ]; then
if [ "$SSHPORT" ]; then
#there is an alternative SSH port configured
echo "the container binds the SSH server port to the configured port $SSHPORT"
sed -i -e "s;#Port 22;Port $SSHPORT;" /etc/ssh/sshd_config
Expand Down

0 comments on commit 1a93f8e

Please sign in to comment.