summaryrefslogtreecommitdiff
path: root/python/vyos/util.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-12-09 12:34:10 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-12-09 12:34:10 -0600
commit9e34d2761e7d88d49782b94c0b1a0f5de3029546 (patch)
tree8e29b2c1b1975d67aa6417e7b9683c16b61bd275 /python/vyos/util.py
parentf168e409acb314d1c15a4343643be7c07ce79b44 (diff)
downloadvyos-1x-9e34d2761e7d88d49782b94c0b1a0f5de3029546.tar.gz
vyos-1x-9e34d2761e7d88d49782b94c0b1a0f5de3029546.zip
vyos.util: T4061: add function to check for completion of boot config
Diffstat (limited to 'python/vyos/util.py')
-rw-r--r--python/vyos/util.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py
index 1834b78bd..dcb332e5c 100644
--- a/python/vyos/util.py
+++ b/python/vyos/util.py
@@ -733,3 +733,12 @@ def is_wwan_connected(interface):
# return True/False if interface is in connected state
return dict_search('modem.generic.state', tmp) == 'connected'
+
+def boot_configuration_complete() -> bool:
+ """ Check if the boot config loader has completed
+ """
+ from vyos.defaults import config_status
+
+ if os.path.isfile(config_status):
+ return True
+ return False