docker-rpi-homebridge/start.sh
2016-11-15 01:01:34 +00:00

15 lines
305 B
Bash
Executable File

#! /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 /root/.homebridge/plugins.txt | xargs npm install -g --unsafe-perm
# Start service
homebridge