OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

  1. #!/bin/sh
  2. #
  3. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. #
  6. # T2 SDE: package/.../powerpc-utils/mac_hid.init
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. # Copyright (C) 1998 - 2003 Clifford Wolf
  9. #
  10. # More information can be found in the files COPYING and README.
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; version 2 of the License. A copy of the
  15. # GNU General Public License can be found in the file COPYING.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. #
  18. # Desc: macintosh mouse button emulation
  19. # Runlevel: 35 rcX rc2 rc3 rc4 rc5
  20. #
  21. mouse_button_emulation=1
  22. mouse_button2_keycode=68
  23. mouse_button3_keycode=87
  24. [ -f /etc/conf/mac_hid ] && . /etc/conf/mac_hid
  25. main_begin
  26. block_begin(start, `Configuring mac_hid for mouse emulation.')
  27. echo $mouse_button_emulation > /proc/sys/dev/mac_hid/mouse_button_emulation
  28. echo $mouse_button2_keycode > /proc/sys/dev/mac_hid/mouse_button2_keycode
  29. echo $mouse_button3_keycode > /proc/sys/dev/mac_hid/mouse_button3_keycode
  30. block_end
  31. block_begin(stop, `Stopping gpm.')
  32. nop=""
  33. block_end
  34. main_end