From 1b202ef4b9a9171ce8f08d45d57f9670fe5ec286 Mon Sep 17 00:00:00 2001 From: haricharan-jaka Date: Mon, 13 Sep 2021 13:01:22 +0530 Subject: [PATCH] Added the whole upgarde image script --- tools/ap_tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/ap_tools.py b/tools/ap_tools.py index 62e25cc84..baaba391f 100644 --- a/tools/ap_tools.py +++ b/tools/ap_tools.py @@ -8,7 +8,7 @@ """ import sys - +import time if "libs" not in sys.path: sys.path.append("../libs/apnos/") @@ -50,9 +50,10 @@ class APTools: print(output) print(error) 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") print(input, output, error) + time.sleep(300) elif action == "get_redirector": redirector = self.apnos.get_redirector() print(redirector)