Skip to content

Commit

Permalink
fix hotspot offline setup
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi committed Feb 3, 2025
1 parent 0815726 commit 01dfef3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions build-image/offline-install-modifications.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@
export BASEDIR="/opt/openhabian"
export DEBIAN_FRONTEND="noninteractive"
export PREOFFLINE="1"
comitupurl=https://davesteele.github.io/comitup/deb/
comitupfile=davesteele-comitup-apt-source_1.2_all.deb
comituprepofile=/etc/apt/sources.d/comitup.list
debfileurl="https://davesteele.github.io/comitup/deb"
debfile="davesteele-comitup-apt-source"
debfilelatest="latest.deb"
debfilestatic="1.2_all.deb"
comituprepofile=/etc/apt/sources.d/davesteele-comitup.list

source /opt/openhabian/functions/helpers.bash
#source /opt/openhabian/functions/helpers.bash
source functions/helpers.bash
add_keys "https://openhab.jfrog.io/artifactory/api/gpg/key/public" "openhab"
echo "deb [signed-by=/usr/share/keyrings/openhab.gpg] https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main" > /etc/apt/sources.list.d/openhab.list

# comitup hotspot
wget -nv "${comitupurl}/$comitupfile"
dpkg -i --force-all "$comitupfile"
rm -f "$comitupfile"
wget -nv "${debfileurl}/${debfile}_${debfilelatest}" || wget -nv "${debfileurl}/${debfile}_${debfilestatic}"
dpkg -i --force-all "${debfile}*.deb"
rm -f "$${debfile}*.deb"
if [[ ! -f ${comituprepofile} ]]; then
echo "deb http://davesteele.github.io/comitup/repo comitup main" > $comituprepofile
echo "deb [signed-by=/usr/share/keyrings/davesteele-archive-keyring.gpg] http://davesteele.github.io/comitup/repo comitup main" > $comituprepofile
fi

# tailscale VPN
Expand Down

0 comments on commit 01dfef3

Please sign in to comment.