HomeBridge in OpenWrt 发布于2021-12-27,归类在笔记中,共有 0 条评论 HomeBridge OpenWrt HomeBridge in Docker ## **安装node** 如果自带源没有需要手动编译 ``` opkg update opkg install node node-npm ``` ## **安装homebridge及webui** 安装[homebridge](https://github.com/homebridge/homebridge "homebridge"),[homebridge-config-ui-x](https://github.com/oznu/homebridge-config-ui-x "homebridge-config-ui-x") ``` npm install -g --unsafe-perm homebridge npm install -g --unsafe-perm homebridge-config-ui-x ``` ## **init文件** ``` /etc/init.d/homebridge ``` ``` #!/bin/sh /etc/rc.common START=98 USE_PROCD=1 start_service() { [ -d /usr/share/homebridge ] || { mkdir -m 0755 -p /usr/share/homebridge chmod 0700 /usr/share/homebridge } procd_open_instance procd_set_param command /usr/bin/hb-service run -U /usr/share/homebridge --allow-root procd_set_param user homebridge procd_set_param stdout 1 procd_set_param stderr 1 procd_close_instance } ``` 本文由 Mitsuha 创作,采用 知识共享署名4.0 国际许可协议进行许可。本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。最后编辑时间为: 2022-01-05