This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Neels Hofmeyr gerrit-no-reply at lists.osmocom.orgNeels Hofmeyr has submitted this change and it was merged. ( https://gerrit.osmocom.org/13235 )
Change subject: run.sh: fix $TO_RAN_IP and $TO_RAN_IU_IP usage
......................................................................
run.sh: fix $TO_RAN_IP and $TO_RAN_IU_IP usage
Add curly braces around both variables, so they get replaced properly
again.
Change-Id: I1f0f749b74fe5fd3982e045283735151f69c2487
---
M net/templates/run.sh
1 file changed, 5 insertions(+), 5 deletions(-)
Approvals:
Pau Espin Pedrol: Looks good to me, but someone else must approve
Harald Welte: Looks good to me, but someone else must approve
Neels Hofmeyr: Looks good to me, approved; Verified
diff --git a/net/templates/run.sh b/net/templates/run.sh
index 804262a..3244b11 100755
--- a/net/templates/run.sh
+++ b/net/templates/run.sh
@@ -27,14 +27,14 @@
sudo ip link set $apn up
fi
-if [ -z "$(ip addr show | grep "$TO_RAN_IP")" ]; then
- echo "No interface has IP address $TO_RAN_IP! Hit enter to continue anyway."
+if [ -z "$(ip addr show | grep "${TO_RAN_IP}")" ]; then
+ echo "No interface has IP address ${TO_RAN_IP}! Hit enter to continue anyway."
read enter_to_continue
fi
-if [ -z "$(ip addr show | grep "$TO_RAN_IU_IP")" ]; then
- echo "No interface has IP address $TO_RAN_IU_IP! Hit enter to 'ip addr add $TO_RAN_IU_IP/32 dev $dev'"
+if [ -z "$(ip addr show | grep "${TO_RAN_IU_IP}")" ]; then
+ echo "No interface has IP address ${TO_RAN_IU_IP}! Hit enter to 'ip addr add ${TO_RAN_IU_IP}/32 dev $dev'"
read enter_to_continue
- sudo ip addr add $TO_RAN_IU_IP/32 dev $dev
+ sudo ip addr add ${TO_RAN_IU_IP}/32 dev $dev
fi
logdir="current_log"
--
To view, visit https://gerrit.osmocom.org/13235
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1f0f749b74fe5fd3982e045283735151f69c2487
Gerrit-Change-Number: 13235
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190314/d2d6ee9d/attachment.htm>