From 4c5e7207dd7a12990e9b10e0bb8ca9e61e312e79 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 2 Dec 2010 14:08:52 -0800 Subject: Allow configuring console speed etc Bug 3849, 2289, 4126 Adds configuration of serial console: set system console { device ttyS0 { speed 19200 } device ttyACM0 { speed 57600 type modem } } This covers the cases of deleting serial console, changing speed, and allowing modem console devices --- templates/system/console/device/node.tag/modem/node.def | 2 ++ templates/system/console/device/type/node.def | 5 ----- templates/system/console/node.def | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 templates/system/console/device/node.tag/modem/node.def delete mode 100644 templates/system/console/device/type/node.def (limited to 'templates/system') diff --git a/templates/system/console/device/node.tag/modem/node.def b/templates/system/console/device/node.tag/modem/node.def new file mode 100644 index 00000000..30e24cf7 --- /dev/null +++ b/templates/system/console/device/node.tag/modem/node.def @@ -0,0 +1,2 @@ +help: Device is Hayes compatiable modem + diff --git a/templates/system/console/device/type/node.def b/templates/system/console/device/type/node.def deleted file mode 100644 index 9bce3b38..00000000 --- a/templates/system/console/device/type/node.def +++ /dev/null @@ -1,5 +0,0 @@ -type: txt -allowed: echo modem direct -help: Configure serial line paremeters -val_help: direct ; Ignore carrier detect (local line) -val_help: modem ; Use HAYES modem answering sequence diff --git a/templates/system/console/node.def b/templates/system/console/node.def index 92d2f79b..d42f8cf6 100644 --- a/templates/system/console/node.def +++ b/templates/system/console/node.def @@ -1,4 +1,3 @@ priority: 100 help: Serial console configuration -# don't do configuration yet -- still broken -#end: sudo /opt/vyatta/sbin/vyatta_update_console.pl +end: sudo /opt/vyatta/sbin/vyatta_update_console.pl -- cgit v1.2.3