ITEM: F8605L

Problem with setmaps command




Question:

This is related directly to item E3634

I am having some problems mapping keys on my PC's running Hummingbird
X-software.  I have fixed the problem by running the command "setmaps
-r -L /\" and having the entry "setmaps -i -L /\" in
the file /etc/profile, so that all users get this keyboard map. The
problem is that if the system reboots, I don't always remember to type
the first command as root. I tried adding this command to the /etc/rc
boot script. This has not caused any problems, but it acts like the
command has not been run. Is there a way to do this without my having
to type this all the time?

Response:

I investigated this some and suggested that he try adding an entry of
the form

 "setmap:2:once:setmaps -r -L /\"

to his /etc/inittab

This will activate the program on phase 2 of booting. If this does not
work, I suggested changing the program phase to 3. He will call back
if this does not work.


Customer called in saying that this did not work. 


Response:

The key to the whole problem is that setmaps expects standard in to
be set.  I was able to get the command to work both in /etc/rc
and in /etc/inittabs as follows:

/etc/inittab
setmaps:2:once:setmaps -L myt.in \< /dev/console > /dev/console

/etc/rc
setmaps -L myt.in \< /dev/console > /dev/console

I tested this on my system at 3.2.5.

After reboot, I logged in as user and issued
setmaps -i myt.in
and all worked as documented.

\< /dev/console is a must.


Support Line: Problem with setmaps command ITEM: F8605L
Dated: February 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:51
Comments or suggestions? Contact us