From d102e62b3d226cb20e11023df16e30c5e250db30 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Tue, 27 Mar 2007 12:49:33 +0000 Subject: Don't output error if no session file is present --- sbin/fndSession | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sbin') diff --git a/sbin/fndSession b/sbin/fndSession index e6f6b44..4fd7c7c 100755 --- a/sbin/fndSession +++ b/sbin/fndSession @@ -11,7 +11,13 @@ umask 022 -for f in /etc/X11/dm.d/*.conf; do +FILES=`/bin/ls /etc/X11/dm.d/*.conf 2> /dev/null` + +if [ $? != 0 ]; then + exit 0 +fi + +for f in $FILES; do EXEC= FNDSESSION_EXEC= eval `grep 'EXEC=' "$f"` -- cgit v1.2.1