Changeset 451 for branches/guitools-1.0/shared/sambainit.vrs
- Timestamp:
- May 25, 2010, 6:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-1.0/shared/sambainit.vrs
r408 r451 42 42 /* smbd.exe */ 43 43 samba.!smbd = "" 44 if samba.!smbd = "" then do /* USER\Samba\ServerPath */ 45 call charout , " Is Samba ServerPath stored in OS2.INI? " 46 samba.!bin = strip(VRGetIni( "Samba", "ServerPath2", "USER" ),'T','00'x) 47 if samba.!bin <> "" then do 48 say 'Yes, found "'samba.!bin'"' 49 if VRFileExists(samba.!bin"\smbd.exe") then do 50 samba.!smbd = samba.!bin"\smbd.exe" 51 say ' Found "'samba.!smbd'".' 52 end 53 end 54 else say 'No, possibly manual installation.' 55 end 56 if samba.!smbd = "" then do /* wellknown locations */ 57 WellKnown = SysBootdrive()"\ecs\system\samba;"SysBootdrive()"\samba" 58 Programs = value("PROGRAMS",,'OS2ENVIRONMENT') 59 if Programs <> "" then WellKnown = Wellknown';'Programs'\samba' 60 Tools = value("TOOLS",,'OS2ENVIRONMENT') 61 if Tools <> "" then WellKnown = Wellknown';'Tools'\samba' 62 call charout , " Are binaries in wellknown locations? " 63 ok = VRFindFile("smbd.exe",WellKnown) 64 if ok <> "" then say "Yes."; else say "No." 65 if ok <> "" then samba.!smbd = ok 66 drop Wellknown Tools Programs 67 end 44 68 if samba.!smbd = "" then do /* in current directory? */ 45 69 call charout , " Are binaries in current directory? " 46 70 ok = SysFileTree('.\smbd.exe', exist.,'FO') 47 say exist.0' (1 = Yes, 0 = No)'71 if exist.0 = 1 then say "Yes."; else say "No." 48 72 if exist.0 = 1 then samba.!smbd = exist.1 49 73 end … … 51 75 call charout , " Are binaries in parent directory? " 52 76 ok = SysFileTree('..\smbd.exe', exist.,'FO') 53 say exist.0' (1 = Yes, 0 = No)'77 if exist.0 = 1 then say "Yes."; else say "No." 54 78 if exist.0 = 1 then samba.!smbd = exist.1 55 79 end … … 57 81 call charout , " Are binaries in ..\BIN directory? " 58 82 ok = SysFileTree('..\bin\smbd.exe', exist.,'FO') 59 say exist.0' (1 = Yes, 0 = No)'83 if exist.0 = 1 then say "Yes."; else say "No." 60 84 if exist.0 = 1 then samba.!smbd = exist.1 61 85 end … … 73 97 if samba.!smbd = "" then call _ErrorBinaryNotFound 'Could not find smbd.exe!' 74 98 99 75 100 samba.!bin = VRParseFileName(samba.!smbd,'DP') 76 101 IF options.!debug == 1 THEN say ' Samba binaries = "'samba.!bin'"' 102 IF options.!debug == 1 THEN say ' Samba smbd.exe = "'samba.!smbd'"' 77 103 78 104 /* smb.cmd */ … … 299 325 300 326 /*:VRX */ 301 _SambaRunning: procedure expose running. pids. TempDir HaveWinbindd options. 327 _SambaRunning: procedure expose running. pids. TempDir HaveWinbindd options. samba. 302 328 IF options.!debug == 1 THEN say '_SambaRunning() started' 303 329
Note:
See TracChangeset
for help on using the changeset viewer.