~ubuntu-branches/ubuntu/natty/debian-installer-utils/natty-updates

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 *  map devfs names to old-style names
 *
 */

#include <debian-installer.h>

int main (int argc, char **argv) {
	static char buf[256];
	size_t len = sizeof(buf);

	if (argc != 2) {
		fprintf(stderr, "Wrong number of args: mapdevfs <path>\n");
		return 1;
	}

	if ((di_system_devfs_map_from(argv[1], buf, len))) {
		printf("%s\n", buf);
		return 0;
	}

	return 1;
}