Skip to content

Commit

Permalink
revise ip addr chks
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 27, 2023
1 parent 227ae4b commit a97fda3
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions aprsgateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions dapnetgateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS} &
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions dgidgateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions dmr2nxdn.service
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions dmr2ysf.service
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions dmrgateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions dstarrepeater.service
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ case "$1" in
exit 0;
else
# Wait for an IP Address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
if [[ $(grep "Version" /etc/pistar-release | cut -c 11) -ge 4 ]]; then
nice -n -10 ${DAEMON_PATH}${DAEMON} & disown
Expand Down
4 changes: 2 additions & 2 deletions ircddbgateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
# Dump the logs
/bin/rm -rf /var/log/pi-star/Links.log
Expand Down
4 changes: 2 additions & 2 deletions m17gateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions mmdvmhost.service
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -10 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions mmdvmhost_NoOLED.service
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
runuser -l $USER -c "${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}"
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions nxdn2dmr.service
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions nxdngateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions nxdnparrot.service
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS} &
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions p25gateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions p25parrot.service
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS} &
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions ysf2dmr.service
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions ysf2nxdn.service
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions ysf2p25.service
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions ysfgateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS}
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down
4 changes: 2 additions & 2 deletions ysfparrot.service
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ case "$1" in
exit 0;
else
# Wait for an IP address
until [ "$ipVar" != " " ]; do
until [ "$ipVar" != "" ]; do
sleep 10
ipVar=`hostname -I`
ipVar=`hostname -I | cut -d' ' -f1`
done
nice -n -5 ${DAEMON_PATH}${DAEMON} ${DAEMON_OPTS} &
echo -e "$DAEMON started as PID "`$PGREP $DAEMON`
Expand Down

0 comments on commit a97fda3

Please sign in to comment.