mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-12-23 12:43:35 +00:00
imp_monitor.sh: switch paths to /opt
This commit is contained in:
parent
ff7a49e273
commit
a4869fcfd2
@ -1,13 +1,13 @@
|
|||||||
#!/opt/wz_mini/bin/bash
|
#!/opt/wz_mini/bin/bash
|
||||||
|
|
||||||
INTERVAL=60
|
INTERVAL=60
|
||||||
LOCKFILE="/media/mmc/wz_mini/tmp/daemon.lock"
|
LOCKFILE="/opt/wz_mini/tmp/daemon.lock"
|
||||||
LOGFILE="/media/mmc/wz_mini/log/daemon.log"
|
LOGFILE="/opt/wz_mini/log/daemon.log"
|
||||||
SCRIPT_PATH=$(cd $(dirname "$0") && pwd -P)/$(basename "$0")
|
SCRIPT_PATH=$(cd $(dirname "$0") && pwd -P)/$(basename "$0")
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
output=$(impdbg --enc_info)
|
output=$(impdbg --enc_info)
|
||||||
. /media/mmc/wz_mini/wz_mini.conf
|
. /opt/wz_mini/wz_mini.conf
|
||||||
exit_status=0
|
exit_status=0
|
||||||
for i in 0 1; do
|
for i in 0 1; do
|
||||||
rcMode=$(echo "$output" | grep -A 32 "CHANNEL $i" | grep "rcMode" | awk -F '[=()]' '{print $2}' | xargs)
|
rcMode=$(echo "$output" | grep -A 32 "CHANNEL $i" | grep "rcMode" | awk -F '[=()]' '{print $2}' | xargs)
|
||||||
@ -34,7 +34,7 @@ check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_values() {
|
set_values() {
|
||||||
. /media/mmc/wz_mini/wz_mini.conf
|
. /opt/wz_mini/wz_mini.conf
|
||||||
output=$(impdbg --enc_info)
|
output=$(impdbg --enc_info)
|
||||||
change_flag=0
|
change_flag=0
|
||||||
for i in 0 1; do
|
for i in 0 1; do
|
||||||
|
Loading…
Reference in New Issue
Block a user