Several small fixes
This commit is contained in:
parent
c720a2f984
commit
8d792f2e3b
3
AUTHORS
3
AUTHORS
@ -38,5 +38,6 @@ NERvOus nervous@nervous.it
|
|||||||
Bobby Cabral bobbyc@digitelone.com
|
Bobby Cabral bobbyc@digitelone.com
|
||||||
Johannes Beekhuizen 2:280/1018@fidonet
|
Johannes Beekhuizen 2:280/1018@fidonet
|
||||||
Lukas De Groen 2:280/1027@fidonet
|
Lukas De Groen 2:280/1027@fidonet
|
||||||
Vince Coen
|
Vince Coen 2:257/609@fidonet
|
||||||
|
Joachim Kuwan 2:249/591@fidonet
|
||||||
|
|
||||||
|
@ -4880,3 +4880,7 @@ v0.33.20 10-Feb-2002
|
|||||||
rundoor.sh
|
rundoor.sh
|
||||||
Called door.bat instead of doors.bat
|
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.
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ int file_cp(char *from, char *to)
|
|||||||
free(line);
|
free(line);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
Nopper(); // For large files on slow systems
|
||||||
} while (bread != 0);
|
} while (bread != 0);
|
||||||
|
|
||||||
free(line);
|
free(line);
|
||||||
@ -193,6 +194,7 @@ long file_crc(char *path, int slow)
|
|||||||
crc = upd_crc32(line, crc, bread);
|
crc = upd_crc32(line, crc, bread);
|
||||||
if (slow)
|
if (slow)
|
||||||
usleep(1);
|
usleep(1);
|
||||||
|
Nopper(); // For large files on slow systems.
|
||||||
} while (bread > 0);
|
} while (bread > 0);
|
||||||
|
|
||||||
free(line);
|
free(line);
|
||||||
|
@ -398,7 +398,7 @@ int EditFileRec(int Area)
|
|||||||
* Erase file in path if path is set and not the default
|
* Erase file in path if path is set and not the default
|
||||||
* FTP base path
|
* FTP base path
|
||||||
*/
|
*/
|
||||||
sprintf(temp, "rm -r -f %s", area.Path);
|
sprintf(temp, "rm -f %s", area.Path);
|
||||||
system(temp);
|
system(temp);
|
||||||
rmdir(area.Path);
|
rmdir(area.Path);
|
||||||
}
|
}
|
||||||
|
@ -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
|
if [ "$DISTNAME" = "SuSE" ]; then
|
||||||
DISTINIT="/sbin/init.d/mbsed"
|
if [ "$DISTVERS" '>' "7.1" ]; then
|
||||||
echo "Installing SystemV init scripts for SuSE"
|
DISTDIR="/etc"
|
||||||
log "+" "Installing SystemV init scripts for SuSE"
|
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"
|
echo "Adding $DISTINIT"
|
||||||
cp init.SuSE $DISTINIT
|
cp init.SuSE $DISTINIT
|
||||||
chmod 755 $DISTINIT
|
chmod 755 $DISTINIT
|
||||||
echo "Making links for start/stop in runlevel 2"
|
echo "Making links for start/stop in runlevel 2"
|
||||||
ln -s ../mbsed /sbin/init.d/rc2.d/K05mbsed
|
ln -s ../mbsed $DISTDIR/init.d/rc2.d/K05mbsed
|
||||||
ln -s ../mbsed /sbin/init.d/rc2.d/S99mbsed
|
ln -s ../mbsed $DISTDIR/init.d/rc2.d/S99mbsed
|
||||||
echo "Making links for start/stop in runlevel 3"
|
echo "Making links for start/stop in runlevel 3"
|
||||||
ln -s ../mbsed /sbin/init.d/rc3.d/K05mbsed
|
ln -s ../mbsed $DISTDIR/init.d/rc3.d/K05mbsed
|
||||||
ln -s ../mbsed /sbin/init.d/rc3.d/S99mbsed
|
ln -s ../mbsed $DISTDIR/init.d/rc3.d/S99mbsed
|
||||||
echo "SuSE SystemV init configured"
|
echo "Making links for start/stop in runlevel 5"
|
||||||
log "+" "SuSE SystemV init configured"
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user