mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 20:07:57 +00:00
Added the whole upgarde image script
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
if "libs" not in sys.path:
|
if "libs" not in sys.path:
|
||||||
sys.path.append("../libs/apnos/")
|
sys.path.append("../libs/apnos/")
|
||||||
|
|
||||||
@@ -50,9 +50,10 @@ class APTools:
|
|||||||
print(output)
|
print(output)
|
||||||
print(error)
|
print(error)
|
||||||
elif action == "upgrade":
|
elif action == "upgrade":
|
||||||
[input, output, error] = self.apnos.run_generic_command("cd /tmp ; curl -L \'{self.comm}\' --output upgrade ; "
|
[input, output, error] = self.apnos.run_generic_command(f"cd /tmp ; curl -L {cmd} --output upgrade ; "
|
||||||
"sysupgrade -n upgrade")
|
"sysupgrade -n upgrade")
|
||||||
print(input, output, error)
|
print(input, output, error)
|
||||||
|
time.sleep(300)
|
||||||
elif action == "get_redirector":
|
elif action == "get_redirector":
|
||||||
redirector = self.apnos.get_redirector()
|
redirector = self.apnos.get_redirector()
|
||||||
print(redirector)
|
print(redirector)
|
||||||
|
|||||||
Reference in New Issue
Block a user