view rvinterf/etmsync/stddirs.c @ 565:4a199ff4b23f

loadtools/scripts/gta02.config: use WS=4 for consistency with generic configs which also work on GTA02 and GTA01 targets
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 31 Jan 2020 06:18:10 +0000
parents e7502631a0f9
children
line wrap: on
line source

/*
 * An automated way to create the standard set of FFS directories
 */

#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "exitcodes.h"

static char *std_dir_list[] = {
	"/gsm",
	"/gsm/com",
	"/gsm/rf",
	"/gsm/rf/rx",
	"/gsm/rf/tx",
	"/pcm",
	"/sys",
	"/mmi",
	"/var",
	"/var/dbg",
	"/aud",
	"/etc",
	0
};

create_std_dirs()
{
	char **dirp;
	int rc;

	for (dirp = std_dir_list; *dirp; dirp++) {
		rc = do_mkdir_existok(*dirp);
		if (rc)
			return(rc);
	}
	return(0);
}