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