Use "-ne" instead of "!=" for integer comparison.

This commit is contained in:
Brooks Davis 2007-03-25 23:58:46 +00:00
parent 07b64b901a
commit 3f857d8115

View File

@ -113,7 +113,7 @@ syscons_setkeyboard()
# Check if the kbdmux(4) is the current active keyboard
kbdcontrol -i < ${kbddev} | grep kbdmux > /dev/null 2>&1
if [ $? != 0 ]; then
if [ $? -ne 0 ]; then
kbdcontrol -k ${kbd} < ${kbddev} > /dev/null 2>&1
fi