Commit 91c9f378 authored by Rahman's avatar Rahman

git operation in shell file

parent 1f2d6878
......@@ -116,14 +116,14 @@ if ($simPresent == "1")
print "Starting ENB...\n";
my $devices = `${enbStart}lsusb`;
if ($devices =~ /2500:0020/)
my $devices = `${enbStart}SoapySDRUtill --find --sparse`;
if ($devices =~ /RF3C000053/)
system($enbStart . "/local/repository/bin/");
print "ERROR: Could not detect USRP B210 radio on the enb1 node. This is usually a transient error. Reboot the enb1 node and try again.\n";
print "ERROR: Could not detect Iris030 radio on the enb1 node. This is usually a transient error. Please try again!\n";
......@@ -44,11 +44,12 @@ apt-get -y install --reinstall avahi-daemon
# switch to iris supported OAI branch
#pushd .
#cd /opt/oai/openairinterface5g
#git checkout iris_hw_new
#source oaienv
#cd cmake_targets
#./build_oai -w IRIS -x --eNB
cd /opt/oai/openairinterface5g
git fetch
git checkout iris_hw_new
source oaienv
cd cmake_targets
./build_oai -w IRIS -x --eNB
exit $?
......@@ -127,9 +127,9 @@ enb1.hardware_type = GLOBALS.PC_HWTYPE
enb1.disk_image = GLOBALS.PC_IMG
enb1.addService(rspec.Execute(shell="sh", command="/usr/bin/sudo /local/repository/"))
enb1.addService(rspec.Execute(shell="sh", command="cd /opt/oai/openairinterface5g; /usr/bin/sudo git checkout iris_hw_new"))
enb1.addService(rspec.Execute(shell="sh", command="source oaienv; cd cmake_targets;"))
enb1.addService(rspec.Execute(shell="sh", command="/usr/bin/sudo ./build_oai -w IRIS -x --eNB"))
#enb1.addService(rspec.Execute(shell="sh", command="cd /opt/oai/openairinterface5g;/usr/bin/sudo git fetch;/usr/bin/sudo git checkout iris_hw_new"))
#enb1.addService(rspec.Execute(shell="sh", command="source oaienv; cd cmake_targets;"))
#enb1.addService(rspec.Execute(shell="sh", command="/usr/bin/sudo ./build_oai -w IRIS -x --eNB"))
ifpc1ir1 = enb1.addInterface("pc1ir1", rspec.IPv4Address("", ""))
enb1.addService(rspec.Execute(shell="sh", command=GLOBALS.OAI_CONF_SCRIPT + " -r ENB"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment