From 7b565f0bcc0dcfc7aa95cdbbb63264f5ba41456e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 8 Jun 2020 22:43:23 +0200 Subject: console: T2570: remove support for Hayes Modems Support for Hayes modems has been long gone (1.2.x) and nobody cared. It was removed in commit d582bbaf3 ("update console settings for systemd") of vyatta-cfg-system. So as there have been zero complaints - cleanup the CLI. --- src/migration-scripts/system/16-to-17 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/migration-scripts/system') diff --git a/src/migration-scripts/system/16-to-17 b/src/migration-scripts/system/16-to-17 index 34ce5a71d..ca3b10f49 100755 --- a/src/migration-scripts/system/16-to-17 +++ b/src/migration-scripts/system/16-to-17 @@ -15,6 +15,7 @@ # along with this program. If not, see . # remove "system console netconsole" +# remove "system console device modem" import os import sys @@ -40,6 +41,12 @@ else: if config.exists(base + ['netconsole']): config.delete(base + ['netconsole']) + for device in config.list_nodes(base + ['device']): + dev_path = base + ['device', device] + # remove "system console device modem" (T2570) + if config.exists(dev_path + ['modem']): + config.delete(dev_path + ['modem']) + try: with open(file_name, 'w') as f: f.write(config.to_string()) -- cgit v1.2.3