Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
851d439b
Commit
851d439b
authored
Feb 08, 2015
by
Igor Pecovnik
Browse files
rpimonitor bugfix
parent
0ea3ebfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.sh
View file @
851d439b
...
@@ -88,18 +88,22 @@ fi
...
@@ -88,18 +88,22 @@ fi
apt-key adv
--recv-keys
--keyserver
keyserver.ubuntu.com 2C0D3C0F
apt-key adv
--recv-keys
--keyserver
keyserver.ubuntu.com 2C0D3C0F
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get
-y
install
rpimonitor
debconf-apt-progress
--
apt-get
-y
install
rpimonitor
service rpimonitor stop
# add my own configuration which is not default
# add my own configuration which is not default
cd
/etc/rpimonitor
cd
/etc/rpimonitor
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/rpimonitor-myconfig.tgz?raw
=
true
-O
- |
tar
-xz
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/rpimonitor-myconfig.tgz?raw
=
true
-O
- |
tar
-xz
cd
/usr/local/bin
cd
/usr/local/bin
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/temp-pir-daemon.sh
?raw
=
true
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/temp-pir-daemon.sh
chmod
+x /usr/local/bin/temp-pir-daemon.sh
chmod
+x /usr/local/bin/temp-pir-daemon.sh
sed
-e
's/exit 0//g'
-i
/etc/rc.local
sed
-e
's/exit 0//g'
-i
/etc/rc.local
cat
>>
/etc/rc.local
<<
"
EOF
"
cat
>>
/etc/rc.local
<<
"
EOF
"
nohup /usr/local/bin/temp-daemon.sh &
nohup /usr/local/bin/temp-
pir-
daemon.sh &
exit 0
exit 0
EOF
EOF
service rpimonitor restart
ln
-sf
/etc/rpimonitor/template/bananian.conf /etc/rpimonitor/data.conf
rm
-rf
/var/lib/rpimonitor/stat
service rpimonitor start
/usr/share/rpimonitor/scripts/updatePackagesStatus.pl
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment