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
73aa4985
Commit
73aa4985
authored
Feb 09, 2015
by
Igor Pecovnik
Browse files
rpimonitor bugfix
parent
7d8edf13
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.sh
View file @
73aa4985
...
@@ -93,7 +93,7 @@ service rpimonitor stop
...
@@ -93,7 +93,7 @@ service rpimonitor stop
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
-xhz
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/rpimonitor-myconfig.tgz?raw
=
true
-O
- |
tar
-xhz
cd
/usr/local/bin
cd
/usr/local/bin
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/temp-pir-daemon.sh
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/temp-pir-daemon.sh
?raw
=
true
-O
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
"
...
@@ -102,6 +102,7 @@ exit 0
...
@@ -102,6 +102,7 @@ exit 0
EOF
EOF
rm
-rf
/var/lib/rpimonitor/stat
rm
-rf
/var/lib/rpimonitor/stat
mkdir
-p
/var/log/rpimonitor
mkdir
-p
/var/log/rpimonitor
nohup
/usr/local/bin/temp-pir-daemon.sh &
service rpimonitor start
service rpimonitor start
/usr/share/rpimonitor/scripts/updatePackagesStatus.pl
/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