From 547ffcfbd77e9ea401f3b6f5d57ff2d3840ff611 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 22 Feb 2012 14:24:04 -0800 Subject: 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. --- debian/control | 1 + templates/set/console/keymap/node.def | 3 +++ templates/set/console/node.def | 1 + 3 files changed, 5 insertions(+) create mode 100644 templates/set/console/keymap/node.def create mode 100644 templates/set/console/node.def 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 -- cgit v1.2.3