mirror of https://gerrit.osmocom.org/osmo-dev
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
This commit is contained in:
parent
44543a98b0
commit
2490f69804
|
@ -27,14 +27,14 @@ if [ -z "$(ip tuntap show | grep $apn)" ]; then
|
||||||
sudo ip link set $apn up
|
sudo ip link set $apn up
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$(ip addr show | grep "$TO_RAN_IP")" ]; then
|
if [ -z "$(ip addr show | grep "${TO_RAN_IP}")" ]; then
|
||||||
echo "No interface has IP address $TO_RAN_IP! Hit enter to continue anyway."
|
echo "No interface has IP address ${TO_RAN_IP}! Hit enter to continue anyway."
|
||||||
read enter_to_continue
|
read enter_to_continue
|
||||||
fi
|
fi
|
||||||
if [ -z "$(ip addr show | grep "$TO_RAN_IU_IP")" ]; then
|
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'"
|
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
|
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
|
fi
|
||||||
|
|
||||||
logdir="current_log"
|
logdir="current_log"
|
||||||
|
|
Loading…
Reference in New Issue