diff options
author | John Estabrook <jestabro@vyos.io> | 2021-03-22 09:36:19 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-05-12 10:45:49 -0500 |
commit | 7bf6f5179dfe53ef990e0183bbd335da994090fc (patch) | |
tree | 46363dfa7f8cee265ec11eea26f2e27cc5ae968b /src/services/vyos-configd | |
parent | fe12810cc65f8db51d8dbadd00835828e8e410c8 (diff) | |
download | vyos-1x-7bf6f5179dfe53ef990e0183bbd335da994090fc.tar.gz vyos-1x-7bf6f5179dfe53ef990e0183bbd335da994090fc.zip |
configd: T3302: check vyos-config-status to determine if in boot session
(cherry picked from commit eeb9687bb9aaf6050b0a8759767f08ab8faac442)
Diffstat (limited to 'src/services/vyos-configd')
-rwxr-xr-x | src/services/vyos-configd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/vyos-configd b/src/services/vyos-configd index 8547b5f56..a4c982e2a 100755 --- a/src/services/vyos-configd +++ b/src/services/vyos-configd @@ -185,7 +185,7 @@ def initialization(socket): session_out = None # if not a 'live' session, for example on boot, write to file - if not session_out or '/dev/pts' not in session_out: + if not session_out or not os.path.isfile('/tmp/vyos-config-status'): session_out = script_stdout_log session_mode = 'a' |