summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kbdcontrol/lex.l
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2000-09-11 20:37:42 +0000
committerdwmalone <dwmalone@FreeBSD.org>2000-09-11 20:37:42 +0000
commiteeb5416b4738f452cac300d13f704c4b03d5d370 (patch)
treeccf2ead9bbeec7dddfd835afb860d0205f0f8dc9 /usr.sbin/kbdcontrol/lex.l
parentc35d103e0f7e019bf6237cd8451bd0a69960b339 (diff)
downloadFreeBSD-src-eeb5416b4738f452cac300d13f704c4b03d5d370.zip
FreeBSD-src-eeb5416b4738f452cac300d13f704c4b03d5d370.tar.gz
Add the ability to define a "shutdown" and "shutdown and poweroff" key
to syscons. I have a man page to follow describing the format of the kbdmap file. PR: 19273 Reviewed by: sheldonh
Diffstat (limited to 'usr.sbin/kbdcontrol/lex.l')
-rw-r--r--usr.sbin/kbdcontrol/lex.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/kbdcontrol/lex.l b/usr.sbin/kbdcontrol/lex.l
index db37658..81314d4 100644
--- a/usr.sbin/kbdcontrol/lex.l
+++ b/usr.sbin/kbdcontrol/lex.l
@@ -68,6 +68,8 @@ lctrla|ctrla { return TLCTRA; }
rctrla { return TRCTRA; }
lalta|alta { return TLALTA; }
ralta { return TRALTA; }
+halt { return THALT; }
+pdwn { return TPDWN; }
NUL|nul { number = 0; return TNUM; }
SOH|soh { number = 1; return TNUM; }
OpenPOWER on IntegriCloud