[PATCH] ltspcfg: fixed suse-debian default DM check

From: Emiliano 'AlberT' Gabrielli
Date: Fri Mar 04 2005 - 12:21:20 EST


the attached patch fixes wrong "default DM" check in debian and suse
plz apply
--
<?php echo ' Emiliano `AlberT` Gabrielli ',"\n",
' E-Mail: AlberT_AT_SuperAlberT_it ',"\n",
' Web: http://SuperAlberT.it ',"\n",
' IRC: #php,#AES azzurra.com ',"\n",'ICQ: 158591185'; ?>
--- /usr/sbin/ltspcfg.orig 2005-03-04 17:00:45.521484448 +0100
+++ /usr/sbin/ltspcfg 2005-03-04 18:22:33.776316296 +0100
@@ -2253,8 +2253,8 @@
#
# If it doesn't look like a SuSE system, then exit this routine
#
- if ( ! -f "/etc/sysconfig/displaymanager"
- || ! -f "/etc/rc.d/xdm" ){
+ if ( ! -f "/etc/sysconfig/displaymanager" and
+ ! -f "/etc/rc.d/xdm" ){
return "";
}

@@ -2327,8 +2327,8 @@
#
# If it doesn't look like a Debian system, then exit this routine
#
- if ( ! -f "/etc/X11/default-display-manager"
- || ! -f "/etc/init.d/xdm" ){
+ if ( ! -f "/etc/X11/default-display-manager" and
+ ! -f "/etc/init.d/xdm" ){
return "";
}