diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/migration-scripts/system/16-to-17 | 7 |
1 files changed, 7 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. # remove "system console netconsole" +# remove "system console device <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 <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()) |