Tryag File Manager
Home
-
Turbo Force
Current Path :
/
etc
/
X11
/
Upload File :
New :
File
Dir
//etc/X11/prefdm
#!/bin/sh PATH=/sbin:/usr/sbin:/bin:/usr/bin # shut down any graphical boot that might exist if [ -x /usr/bin/rhgb-client ]; then /usr/bin/rhgb-client --quit fi # We need to source this so that the login screens get translated [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n # Run preferred X display manager preferred= if [ -f /etc/sysconfig/desktop ]; then . /etc/sysconfig/desktop if [ "$DISPLAYMANAGER" = GNOME ]; then preferred=/usr/sbin/gdm elif [ "$DISPLAYMANAGER" = KDE ]; then preferred=/usr/bin/kdm elif [ "$DISPLAYMANAGER" = XDM ]; then preferred=/usr/bin/xdm elif [ -n "$DISPLAYMANAGER" ]; then preferred=$DISPLAYMANAGER fi fi shopt -s execfail [ -n "$preferred" ] && exec $preferred "$@" >/dev/null 2>&1 </dev/null # Fallbacks, in order exec gdm "$@" >/dev/null 2>&1 </dev/null exec kdm "$@" >/dev/null 2>&1 </dev/null exec xdm "$@" >/dev/null 2>&1 </dev/null # catch all exit error exit 1