Several small fixes

This commit is contained in:
Michiel Broek 2002-05-06 18:53:17 +00:00
parent c720a2f984
commit 8d792f2e3b
5 changed files with 27 additions and 12 deletions

View File

@ -38,5 +38,6 @@ NERvOus nervous@nervous.it
Bobby Cabral bobbyc@digitelone.com
Johannes Beekhuizen 2:280/1018@fidonet
Lukas De Groen 2:280/1027@fidonet
Vince Coen
Vince Coen 2:257/609@fidonet
Joachim Kuwan 2:249/591@fidonet

View File

@ -4880,3 +4880,7 @@ v0.33.20 10-Feb-2002
rundoor.sh
Called door.bat instead of doors.bat
installinit.sh
Modified for SuSE 7.1 and later, the location of the startup
script moved from /sbin to /etc. Patch by Joachim Kuwan.

View File

@ -70,6 +70,7 @@ int file_cp(char *from, char *to)
free(line);
return error;
}
Nopper(); // For large files on slow systems
} while (bread != 0);
free(line);
@ -193,6 +194,7 @@ long file_crc(char *path, int slow)
crc = upd_crc32(line, crc, bread);
if (slow)
usleep(1);
Nopper(); // For large files on slow systems.
} while (bread > 0);
free(line);

View File

@ -398,7 +398,7 @@ int EditFileRec(int Area)
* Erase file in path if path is set and not the default
* FTP base path
*/
sprintf(temp, "rm -r -f %s", area.Path);
sprintf(temp, "rm -f %s", area.Path);
system(temp);
rmdir(area.Path);
}

View File

@ -140,23 +140,31 @@ log "+" "Distribution $OSTYPE $DISTNAME $DISTVERS"
#--------------------------------------------------------------------------
#
# Adding scripts for SuSE
# Adding scripts for SuSE, from 7.1 and later in /etc/init.d
#
if [ "$DISTNAME" = "SuSE" ]; then
DISTINIT="/sbin/init.d/mbsed"
echo "Installing SystemV init scripts for SuSE"
log "+" "Installing SystemV init scripts for SuSE"
if [ "$DISTVERS" '>' "7.1" ]; then
DISTDIR="/etc"
else
DISTDIR="/sbin"
fi
DISTINIT="$DISTDIR/init.d/mbsed"
echo "Installing SystemV init scripts for SuSE $DISTVERS"
log "+" "Installing SystemV init scripts for SuSE $DISTVERS"
echo "Adding $DISTINIT"
cp init.SuSE $DISTINIT
chmod 755 $DISTINIT
echo "Making links for start/stop in runlevel 2"
ln -s ../mbsed /sbin/init.d/rc2.d/K05mbsed
ln -s ../mbsed /sbin/init.d/rc2.d/S99mbsed
ln -s ../mbsed $DISTDIR/init.d/rc2.d/K05mbsed
ln -s ../mbsed $DISTDIR/init.d/rc2.d/S99mbsed
echo "Making links for start/stop in runlevel 3"
ln -s ../mbsed /sbin/init.d/rc3.d/K05mbsed
ln -s ../mbsed /sbin/init.d/rc3.d/S99mbsed
echo "SuSE SystemV init configured"
log "+" "SuSE SystemV init configured"
ln -s ../mbsed $DISTDIR/init.d/rc3.d/K05mbsed
ln -s ../mbsed $DISTDIR/init.d/rc3.d/S99mbsed
echo "Making links for start/stop in runlevel 5"
ln -s ../mbsed $DISTDIR/init.d/rc5.d/K05mbsed
ln -s ../mbsed $DISTDIR/init.d/rc5.d/S99mbsed
echo "SuSE $DISTVERS SystemV init configured"
log "+" "SuSE $DISTVERS SystemV init configured"
fi