localuser.sh 543 B

123456789101112
  1. #!/bin/sh
  2. # Copyright (C) 2006 Red Hat, Inc. All rights reserved. This
  3. # copyrighted material is made available to anyone wishing to use, modify,
  4. # copy, or redistribute it subject to the terms and conditions of the
  5. # GNU General Public License version 2.
  6. #
  7. # You should have received a copy of the GNU General Public License
  8. # along with this program; if not, write to the Free Software
  9. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  10. #
  11. [ -x /usr/bin/xhost ] && [ -x /usr/bin/id ] &&
  12. xhost +si:localuser:`id -un` >& /dev/null