summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-02-22 14:24:04 -0800
committerStephen Hemminger <shemminger@vyatta.com>2012-02-22 14:24:04 -0800
commit547ffcfbd77e9ea401f3b6f5d57ff2d3840ff611 (patch)
tree8d4bef074b244fa2b39f13a82a2f01319d77be0d
parentfbd7dc59b3b55a4874d29f0f0fc146eba987e9f1 (diff)
downloadvyatta-op-547ffcfbd77e9ea401f3b6f5d57ff2d3840ff611.tar.gz
vyatta-op-547ffcfbd77e9ea401f3b6f5d57ff2d3840ff611.zip
Add console keymap reconfigure op-mode command
Bug 7448 This adds template for the Debian way to reconfigure console keymap. Note: although this is an op-mode command, it really persists across reboot since it changes the package keymap. There isn't a good method to put this in Vyatta config since the debian package configuration is interactive and prompts user for keyboard type and options.
-rw-r--r--debian/control1
-rw-r--r--templates/set/console/keymap/node.def3
-rw-r--r--templates/set/console/node.def1
3 files changed, 5 insertions, 0 deletions
diff --git a/debian/control b/debian/control
index a02eb44..3c3fbcb 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Standards-Version: 3.7.2
Package: vyatta-op
Architecture: all
Depends: sed (>= 4.1.5),
+ console-setup, console-terminus,
ethtool,
traceroute,
ntpdate,
diff --git a/templates/set/console/keymap/node.def b/templates/set/console/keymap/node.def
new file mode 100644
index 0000000..5ab2f24
--- /dev/null
+++ b/templates/set/console/keymap/node.def
@@ -0,0 +1,3 @@
+help: Reconfigure console keyboard layout
+run: sudo dpkg-reconfigure -f dialog keyboard-configuration
+ sudo /etc/init.d/keyboard-setup restart
diff --git a/templates/set/console/node.def b/templates/set/console/node.def
new file mode 100644
index 0000000..29bae4d
--- /dev/null
+++ b/templates/set/console/node.def
@@ -0,0 +1 @@
+help: Control console behaviors