forked from mitchese/shm-et340
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
17 lines (17 loc) · 858 Bytes
/
Copy pathinstall.sh
File metadata and controls
17 lines (17 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
mkdir /data/drivers
mkdir /data/drivers/shm-et340
mkdir /data/drivers/shm-et340/service
cd /data/drivers/shm-et340
wget https://github.com/mitchese/shm-et340/releases/download/v0.3/shm-et340
chmod +x ./shm-et340
cd /data/drivers/shm-et340/service
wget https://raw.githubusercontent.com/christian1980nrw/shm-et340-fixed-vrm-portal/master/service/run
chmod +x ./run
ln -s /data/drivers/shm-et340/service /service/shm-et340
echo >> /data/rc.local
echo "ln -s /data/drivers/shm-et340/service /service/shm-et340" >> /data/rc.local
chmod +x /data/rc.local
echo Installation finished. Please edit the file /data/drivers/shm-et340/service/run and change the IP adress of your smartmeter.
echo Please ensure in your routers DHCP-service that the smartmeter is always getting the same IP adress.
echo Note: This installation will survive a firmware update.