mirror of
https://github.com/ViViDboarder/docker-rpi-homebridge.git
synced 2024-12-22 23:47:37 +00:00
15 lines
305 B
Bash
15 lines
305 B
Bash
|
#! /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
|