keylaunch: Akita / Spitz: Update keymapping to allow switching to the VT from inside...
authorMatthias Hentges <oe@hentges.net>
Sun, 28 May 2006 16:56:51 +0000 (16:56 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sun, 28 May 2006 16:56:51 +0000 (16:56 +0000)
packages/keylaunch/files/80chvt-SUID [new file with mode: 0644]
packages/keylaunch/files/akita/keylaunchrc
packages/keylaunch/files/spitz/keylaunchrc
packages/keylaunch/keylaunch_2.0.10.bb

diff --git a/packages/keylaunch/files/80chvt-SUID b/packages/keylaunch/files/80chvt-SUID
new file mode 100644 (file)
index 0000000..e3b4efe
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh
+#
+# Copyright Matthias Hentges <devel@hentges.net> (c) 2006
+# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
+#
+# Filename: chvt-SUID.sh
+# Date: 28-May-06
+
+
+#
+# Sets the SUID bit on chvt to allow changing to the VT from inside X by
+# any user. Since a SUID binary still is a security risk, we chmod only
+# when keylaunch is used and not by default.
+#
+
+for target in /usr/bin/chvt.console-tools
+do
+       if test "`ls -l "$target" | awk '{print $1}'|cut -c 2-4`" != "rws" 
+       then
+               echo "Making [$target] SUID root..."
+               chmod u+s "$target"
+       else
+               echo "Ignoring [$target]"
+       fi
+done
index 0379c71..27cce24 100644 (file)
@@ -22,3 +22,7 @@ key=....F18:-:gpe-calendar
 #key=....F19:-:                                                                 
 #key=....F19:-:                                                                 
 #key=....F10:-:                                                                 
+
+# VT changing
+key=...*Left:-:~chvt 1
+key=...*Right:-:~chvt 3
index f5e1fd7..433221a 100644 (file)
@@ -22,3 +22,7 @@ key=....F18:-:gpe-calendar
 #key=....F19:-:                                                                 
 #key=....F19:-:                                                                 
 #key=....F10:-:                                                                 
+
+# VT changing
+key=...*Left:-:~chvt 1
+key=...*Right:-:~chvt 3
index c06c9c4..67ed092 100644 (file)
@@ -13,7 +13,7 @@ DESCRIPTION = "A small utility for binding commands to a hot key.\
  program is already running, keylaunch can bring its window to the front\
  rather than just running another copy."
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-PR = "r4"
+PR = "r5"
 
 SRC_URI += " file://keylaunchrc"