Gitlab CI update for change in config files + handling of resetting of UE
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -200,10 +200,12 @@ def reset_ue():
|
|||||||
ProductId=res[0][3]
|
ProductId=res[0][3]
|
||||||
usb_dir= find_usb_path(VendorId, ProductId)
|
usb_dir= find_usb_path(VendorId, ProductId)
|
||||||
print "Bandrich 4G LTE Adapter found in..." + usb_dir
|
print "Bandrich 4G LTE Adapter found in..." + usb_dir
|
||||||
|
print "Sleeping now for 45 seconds...please wait..."
|
||||||
cmd = "sudo sh -c \"echo 0 > " + usb_dir + "/authorized\""
|
cmd = "sudo sh -c \"echo 0 > " + usb_dir + "/authorized\""
|
||||||
os.system(cmd + " ; sleep 15" )
|
os.system(cmd + " ; sleep 15" )
|
||||||
cmd = "sudo sh -c \"echo 1 > " + usb_dir + "/authorized\""
|
cmd = "sudo sh -c \"echo 1 > " + usb_dir + "/authorized\""
|
||||||
os.system(cmd + " ; sleep 30" )
|
os.system(cmd + " ; sleep 30" )
|
||||||
|
stop_ue()
|
||||||
|
|
||||||
i=1
|
i=1
|
||||||
gw='192.172.0.1'
|
gw='192.172.0.1'
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ def reset_ue():
|
|||||||
os.system(cmd + " ; sleep 15" )
|
os.system(cmd + " ; sleep 15" )
|
||||||
cmd = "sudo sh -c \"echo 1 > " + usb_dir + "/authorized\""
|
cmd = "sudo sh -c \"echo 1 > " + usb_dir + "/authorized\""
|
||||||
os.system(cmd + " ; sleep 30" )
|
os.system(cmd + " ; sleep 30" )
|
||||||
|
stop_ue()
|
||||||
|
|
||||||
i=1
|
i=1
|
||||||
gw='192.172.0.1'
|
gw='192.172.0.1'
|
||||||
|
|||||||
Reference in New Issue
Block a user