Apply a patch from Larry Doolittle to add "-all" and "-none" switches

to multibuild.pl.  I did a little formatting adjustments to make it
_very_ obvious when things stop working.  I also removed the USE_PROCFS
config option -- just do the right thing when USE_DEVPS_PATCH is enabled.
 -Erik
This commit is contained in:
Eric Andersen
2001-02-01 22:43:49 +00:00
parent b5c29850e3
commit af4ac77d9d
21 changed files with 53 additions and 185 deletions

View File

@ -232,13 +232,9 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
{
int status = 0;
#if defined BB_FEATURE_USE_PROCFS
char buf[255];
if (strcmp(filesystemType, "auto") == 0) {
FILE *f = fopen("/proc/filesystems", "r");
if (f == NULL)
return (FALSE);
FILE *f = xfopen("/proc/filesystems", "r");
while (fgets(buf, sizeof(buf), f) != NULL) {
filesystemType = buf;
@ -261,7 +257,6 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
}
fclose(f);
} else
#endif
#if defined BB_FEATURE_USE_DEVPS_PATCH
if (strcmp(filesystemType, "auto") == 0) {
int fd, i, numfilesystems;