diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-30 15:51:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 15:51:47 +0200 |
commit | 33f2fd5028108d905864f3bd12e740a53b23c5c9 (patch) | |
tree | 81388702d9e8516fc8bd1587354bedadfa73a5ec /op-mode-definitions | |
parent | a81d270b166dbe939167523ee0b837fe701d3594 (diff) | |
parent | b3b31153963cc4338e8229f9f94b339682dd73a0 (diff) | |
download | vyos-1x-33f2fd5028108d905864f3bd12e740a53b23c5c9.tar.gz vyos-1x-33f2fd5028108d905864f3bd12e740a53b23c5c9.zip |
Merge pull request #3698 from talmakion/bugfix/T3334
system: op-mode: T3334: allow delayed getty restart when configuring serial ports
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/restart-serial.xml.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/op-mode-definitions/restart-serial.xml.in b/op-mode-definitions/restart-serial.xml.in new file mode 100644 index 000000000..4d8a03633 --- /dev/null +++ b/op-mode-definitions/restart-serial.xml.in @@ -0,0 +1,31 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="restart"> + <children> + <node name="serial"> + <properties> + <help>Restart services on serial ports</help> + </properties> + <children> + <node name="console"> + <properties> + <help>Restart serial console service for login TTYs</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/serial.py restart_console</command> + <children> + <tagNode name="device"> + <properties> + <help>Restart specific TTY device</help> + <completionHelp> + <script>${vyos_completion_dir}/list_login_ttys.py</script> + </completionHelp> + </properties> + <command>sudo ${vyos_op_scripts_dir}/serial.py restart_console --device-name "$5"</command> + </tagNode> + </children> + </node> + </children> + </node> + </children> + </node> +</interfaceDefinition> |