Docker image for running Homebridge on a Raspberry Pi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
332 B

#! /bin/sh
# Fix avahi
sed -i "s/rlimit-nproc=3/#rlimit-nproc=3/" /etc/avahi/avahi-daemon.conf
dbus-daemon --system
avahi-daemon -D
service dbus start
service avahi-daemon start
# Install desired plugins
cat $HOME/.homebridge/plugins.txt | xargs npm install --unsafe-perm
# Start service
/homebridge/node_modules/.bin/homebridge