Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Commit 428565c

Browse files
committed
Fixes for building with latest hassbian-scripts pkg.
1 parent f167815 commit 428565c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
git python3 python3-venv python3-pip bluetooth libbluetooth-dev rng-tools rpi-update htop tmux avahi-daemon libtool autoconf rfkill gvfs
1+
git python3 python3-venv python3-pip bluetooth libbluetooth-dev rng-tools rpi-update htop tmux avahi-daemon libtool autoconf rfkill gvfs libssl-dev libffi-dev python-dev libudev-dev

stage3/01-tweaks/00-run.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,27 @@ useradd -u 1001 -g 1001 -rm homeassistant
66
EOF
77

88
install -v -o 1001 -g 1001 -d ${ROOTFS_DIR}/srv/homeassistant
9-
wget -O files/hassbian-scripts-0.4.deb https://github.com/home-assistant/hassbian-scripts/releases/download/v0.4/hassbian-scripts_0.4.deb
10-
install -v -m 600 files/hassbian-scripts-0.4.deb ${ROOTFS_DIR}/srv/homeassistant/
9+
10+
# Download latest Hassbian-scripts package
11+
cd /tmp
12+
curl https://api.github.com/repos/home-assistant/hassbian-scripts/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -qi -
13+
HASSBIAN_PACKAGE=$(ls /tmp| grep 'hassbian*')
14+
install -v -m 600 /tmp/$HASSBIAN_PACKAGE ${ROOTFS_DIR}/srv/homeassistant/
15+
rm $HASSBIAN_PACKAGE
1116

1217
on_chroot << EOF
13-
dpkg -i /srv/homeassistant/hassbian-scripts-0.4.deb
18+
dpkg -i /srv/homeassistant/*.deb
1419
EOF
1520

1621
on_chroot << EOF
1722
systemctl enable install_homeassistant
1823
EOF
1924

2025
on_chroot << \EOF
21-
for GRP in dialout gpio spi i2c video; do
26+
for GRP in dialout gpio i2c input netdev spi video; do
2227
adduser homeassistant $GRP
2328
done
2429
for GRP in homeassistant; do
2530
adduser pi $GRP
2631
done
2732
EOF
28-

0 commit comments

Comments
 (0)