Skip to contentSkip to conversation

ltspcfg: fixed suse-debian default DM check

PATCH In review Emiliano 'AlberT' Gabrielli 1 participant 2 messages Mar 4, 2005 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ltspcfg: fixed suse-debian default DM check

the attached patch fixes wrong "default DM" check in debian and suse plz apply

Signature · 4 lines
<?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 renamed from usr/sbin/ltspcfg.orig +4 -4
@@ -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 "";
     }
 
#1 lore raw
Quoted 2 lines · Emiliano 'AlberT' Gabrielli

the attached patch fixes wrong "default DM" check in debian and suse plz apply

sorry, my bad wrong ML !

Signature · 4 lines
<?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'; ?>