Skip to content

Commit

Permalink
remove hb arch check
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed May 29, 2020
1 parent cf1a9b8 commit 4bf6097
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 52 deletions.
11 changes: 0 additions & 11 deletions stage3_homebridge/01-homebridge/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ install -m 755 files/hb-config "${ROOTFS_DIR}/usr/local/sbin/"
install -v -d "${ROOTFS_DIR}/etc/hb-service/homebridge/prestart.d"
install -m 755 files/20-hb-nginx-check "${ROOTFS_DIR}/etc/hb-service/homebridge/prestart.d/"

#
# hb-arch-check service
# this service rebuilds the modules for armv6 if the SD card is inserted into a Raspberry Pi 1 / Zero W
#
install -m 644 files/hb-arch-check.service "${ROOTFS_DIR}/etc/systemd/system/"
install -m 755 files/hb-arch-check "${ROOTFS_DIR}/etc/hb-service/"

#
# MOTD
#
Expand Down Expand Up @@ -57,14 +50,10 @@ chown -R pi:pi /var/lib/homebridge
[ -e /home/pi/.homebridge ] || ln -fs /var/lib/homebridge /home/pi/.homebridge
[ -e /root/.homebridge ] || ln -fs /var/lib/homebridge /root/.homebridge
# store the build arch
echo "armv7l" > /etc/homebridge-arch
# set ui port for use in motd message
echo "8581" > /etc/hb-ui-port
systemctl daemon-reload
systemctl enable homebridge
systemctl enable hb-arch-check
EOF

28 changes: 0 additions & 28 deletions stage3_homebridge/01-homebridge/files/hb-arch-check

This file was deleted.

12 changes: 0 additions & 12 deletions stage3_homebridge/01-homebridge/files/hb-arch-check.service

This file was deleted.

2 changes: 1 addition & 1 deletion stage3_homebridge/01-homebridge/files/hb-config
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NC='\033[0m'

is_pi () {
ARCH=$(dpkg --print-architecture)
if [ "$ARCH" = "armhf" ] ; then
if [ "$ARCH" = "armhf" ] || [ "$ARCH" = "arm64" ] ; then
return 0
else
return 1
Expand Down

0 comments on commit 4bf6097

Please sign in to comment.