Newer
Older
rootx / rootx
@toor toor on 27 Dec 2012 431 bytes Fixed typo.
  1. #!/bin/sh
  2. # rootx - Configure X For root User After An su or sudo Promotion
  3. # Copyright (c) 2012 TundraWare Inc., Des Plaines, IL USA
  4. # All Rights Reserved
  5. # $Id: rootx,v 1.104 2012/12/27 23:15:08 toor Exp $
  6.  
  7. # Allow the DISPLAY variable to be overriden on the command line
  8.  
  9. if [ _$1 = _ ]
  10. then
  11. DISPLAY=localhost:10.0
  12.  
  13. else
  14. DISPLAY=$1
  15.  
  16. fi
  17.  
  18. echo "Make sure you sourced me!"
  19. cp -p /home/tundra/.Xauthority /root/
  20. export DISPLAY
  21.