Advertisement
techmik

mdm template

Jun 30th, 2011
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Copyright (C) 2004-2007 Centro de Computacao Cientifica e Software Livre
  4. # Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
  5. #
  6. # This program is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License
  8. # as published by the Free Software Foundation; either version 2
  9. # of the License, or (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
  19. # USA.
  20.  
  21. # This is the template file for the mdm modes
  22.  
  23. function display_manager_init () {
  24. # This function should stop running processes, remove logs, links, locks, or
  25. # anything your display manager might need.
  26. # Consider calling display_manager_stop here if you don't need anything
  27. # else.
  28. }
  29.  
  30. function display_manager_start_monoseat () {
  31. # This function is called when the computer has only 1 video card.
  32. # You should open only 1 xserver and that's it: normal usage, not multiseat
  33. # Do NOT configure devices or stuff like that
  34. # We assume $DISPLAY is already set here.
  35. }
  36.  
  37. function display_manager_start_underneath_xserver () {
  38. # In case we're using nested xservers (like Xephyr), we'll need to start an
  39. # xserver to run the nested servers on top of it
  40. # Don't put login screen on this server!
  41. # We assume $DISPLAY is already set here.
  42. }
  43.  
  44. function display_manager_start_seat () {
  45. # This is where we start the xserver that will have a login screen
  46. # In case of multiseat with Xephyr, this function starts the Xephyrs and
  47. # puts the login screens on them.
  48. # We assume $DISPLAY is already set here.
  49. # This function is called by mdm-start-seat, which gives you variables:
  50. # - $KEYBOARD and $MOUSE, which point to evdev device nodes.
  51. # - $SEAT_DISPLAY variable corresponds to the number that the user will
  52. # have to press on the keyboard. Might be useful here.
  53. # - $MY_SCREEN_SIZE for the size of screen (needed when running nested
  54. # xservers)
  55. # - $MY_XKB_LAYOUT and $MY_XKB_MODEL, for the keyboard associated with the
  56. # seat
  57. }
  58.  
  59. function display_manager_stop () {
  60. # This function should kill everything it has to kill, so that we REALLY
  61. # stop all the seats, kill all the Xephyrs, remove locks, links and stuff
  62. # like that.
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement