1d075918cSmrg#!/bin/sh
2d075918cSmrg#
3d075918cSmrg#  Copyright 2008 VMware, Inc.
4d075918cSmrg#
5d075918cSmrg#  Permission is hereby granted, free of charge, to any person obtaining a
6d075918cSmrg#  copy of this software and associated documentation files (the "Software"),
7d075918cSmrg#  to deal in the Software without restriction, including without limitation
8d075918cSmrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
9d075918cSmrg#  license, and/or sell copies of the Software, and to permit persons to whom
10d075918cSmrg#  the Software is furnished to do so, subject to the following conditions:
11d075918cSmrg#
12d075918cSmrg#  The above copyright notice and this permission notice (including the next
13d075918cSmrg#  paragraph) shall be included in all copies or substantial portions of the
14d075918cSmrg#  Software.
15d075918cSmrg#
16d075918cSmrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17d075918cSmrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18d075918cSmrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
19d075918cSmrg#  VMWARE, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20d075918cSmrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21d075918cSmrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22d075918cSmrg
23d075918cSmrg[ -x __HAL_BIN_PREFIX__/hal-set-property ] || exit 0
24d075918cSmrg[ -x __BIN_PREFIX__/vmmouse_detect ] || exit 0
25d075918cSmrg
26d075918cSmrg__BIN_PREFIX__/vmmouse_detect
27d075918cSmrgif [ $? -eq 0 ]; then
28d075918cSmrg   __HAL_BIN_PREFIX__/hal-set-property --direct --udi "$UDI" --key input.x11_driver --string "vmmouse"
299418810dSmrg   __HAL_BIN_PREFIX__/hal-set-property --direct --udi "$UDI" --key input.tags --string "vmmouse"
30d075918cSmrgfi
31d075918cSmrg
32