Browse code

minor revision

Gandolf authored on 07/06/2021 21:35:18
Showing 2 changed files
... ...
@@ -12,20 +12,8 @@ LOG_PATH="/home/$USER/log"
12 12
 # in the agent script.  '60' is the default. Value is in seconds.
13 13
 POLLING_INTERVAL="60"
14 14
 
15
-
16
-if [ "$HOSTNAME" == "raspi3" ]; then
17
-  AGENT_NAME="[a]rednsigMirrorAgent.py"
18
-  SOURCE_URL="http://192.168.1.30:7368/arednsig/"
19
-elif [ "$HOSTNAME" == "redwall" ]; then
20
-  AGENT_NAME="[a]rednsigMirrorAgent.py"
21
-  SOURCE_URL="http://73.157.139.23:7361/arednsig/"
22
-elif [ "$HOSTNAME" == "ka7jlo-web" ]; then
23
-  AGENT_NAME="[a]rednsigAgent.py"
24
-  SOURCE_URL="http://ka7jlo-sw-albany-nano-m3.local.mesh/cgi-bin/status"
25
-else
26
-  echo invalid host
27
-  exit 1
28
-fi
15
+AGENT_NAME="[a]rednsigAgent.py"
16
+SOURCE_URL="{your Aredn node  url}"
29 17
 
30 18
 PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
31 19
 
... ...
@@ -1,16 +1,7 @@
1 1
 #!/bin/bash
2 2
 # Stop the radmon agent process.
3 3
 
4
-if [ "$HOSTNAME" == "raspi3" ]; then
5
-  AGENT_NAME="[a]rednsigMirrorAgent.py"
6
-elif [ "$HOSTNAME" == "redwall" ]; then
7
-  AGENT_NAME="[a]rednsigMirrorAgent.py"
8
-elif [ "$HOSTNAME" == "ka7jlo-web" ]; then
9
-  AGENT_NAME="[a]rednsigAgent.py"
10
-else
11
-  echo invalid host
12
-  exit 1
13
-fi
4
+AGENT_NAME="[a]rednsigAgent.py"
14 5
 
15 6
 PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
16 7