diff options
author | John Estabrook <jestabro@vyos.io> | 2021-12-08 13:29:46 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-12-08 13:30:38 -0600 |
commit | e6b1c1f572068535ea99ee39a2d66bd6bf7043d5 (patch) | |
tree | 13730bb126a5ead223620b879cfd354509001ecf /python/vyos/util.py | |
parent | bcfe967f607a83192d75c01e7f414655891eec60 (diff) | |
download | vyos-1x-e6b1c1f572068535ea99ee39a2d66bd6bf7043d5.tar.gz vyos-1x-e6b1c1f572068535ea99ee39a2d66bd6bf7043d5.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.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py index 157b26bf7..954c6670d 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -979,3 +979,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 |