forked from dceejay/openwrt-node-red
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildNR.sh
More file actions
executable file
·23 lines (23 loc) · 898 Bytes
/
Copy pathbuildNR.sh
File metadata and controls
executable file
·23 lines (23 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
###
### There are some custom commands here to get things working on my system.
### Please check to see if they are appropiate for you before using
###
cd /root
opkg install make gcc python3
ln -s /usr/bin/gcc /usr/bin/cc
ar -rc /usr/lib/libpthread.a
#opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
opkg install node-npm
npm i -g npm
npm i -g --unsafe-perm node-red
mkdir -p /etc/node-red
cp /usr/src/openwrt-node-red/node-red /etc/init.d/node-red
/etc/init.d/node-red enable
cp /usr/src/openwrt-node-red/flows.json /etc/node-red/flows.json
cp /usr/src/openwrt-node-red/flows_cred.json /etc/node-red/flows_cred.json
cp -R /usr/src/openwrt-node-red/luci/* /usr/lib/lua/luci/
cd /etc/node-red
npm i node-red-node-random node-red-contrib-web-worldmap node-red-dashboard bufferutil utf-8-validate
rm -rf /usr/lib/node_modules/node-red/nodes/core/hardware
opkg remove make gcc