This repository was archived by the owner on Oct 26, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -6,23 +6,27 @@ useradd -u 1001 -g 1001 -rm homeassistant
66EOF
77
88install -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
1217on_chroot << EOF
13- dpkg -i /srv/homeassistant/hassbian-scripts-0.4 .deb
18+ dpkg -i /srv/homeassistant/* .deb
1419EOF
1520
1621on_chroot << EOF
1722systemctl enable install_homeassistant
1823EOF
1924
2025on_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
2328done
2429for GRP in homeassistant; do
2530 adduser pi $GRP
2631done
2732EOF
28-
You can’t perform that action at this time.
0 commit comments