aboutsummaryrefslogtreecommitdiffstats
path: root/po/nl.po
diff options
context:
space:
mode:
Diffstat (limited to 'po/nl.po')
-rw-r--r--po/nl.po50
1 files changed, 25 insertions, 25 deletions
diff --git a/po/nl.po b/po/nl.po
index bc88eb7..3844d75 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: isodumper\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-04-19 08:18+0200\n"
+"POT-Creation-Date: 2014-05-02 19:59+0200\n"
"PO-Revision-Date: 2013-12-29 16:59+0100\n"
"Last-Translator: marja <marja@mageia.org>\n"
"Language-Team: Dutch <i18n-nl@ml.mageia.org>\n"
@@ -20,100 +20,100 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-06-12 12:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
-#: lib/isodumper.py:112
+#: lib/isodumper.py:136
msgid "Mb"
msgstr "Mb"
-#: lib/isodumper.py:154 share/isodumper/isodumper.glade.h:22
+#: lib/isodumper.py:174 share/isodumper/isodumper.glade.h:22
msgid "Backup in:"
msgstr "Back-uppen in:"
-#: lib/isodumper.py:155
+#: lib/isodumper.py:175
msgid "Image: "
msgstr "Image-bestand: "
-#: lib/isodumper.py:156
+#: lib/isodumper.py:176
msgid "Target Device: "
msgstr "Doelstation: "
-#: lib/isodumper.py:159
+#: lib/isodumper.py:179
msgid "The device is too small to contain the ISO file."
msgstr "Het opslagmedium is te klein voor het ISO-bestand"
-#: lib/isodumper.py:166
+#: lib/isodumper.py:186
msgid "The device is bigger than 32 Gbytes. Are you sure you want use it?"
msgstr ""
"Het opslagmedium is groter dan 32 GB. Weet u zeker dat u het wilt gebruiken?"
-#: lib/isodumper.py:192
+#: lib/isodumper.py:219
msgid "Unmounting all partitions of "
msgstr "Alle partities loskoppelen van "
-#: lib/isodumper.py:194
+#: lib/isodumper.py:221
msgid "Trying to unmount "
msgstr "Bezig met loskoppelen "
-#: lib/isodumper.py:200
+#: lib/isodumper.py:227
msgid " was terminated by signal "
msgstr " is afgebroken door signaal "
-#: lib/isodumper.py:200 lib/isodumper.py:206
+#: lib/isodumper.py:227 lib/isodumper.py:233
msgid "Error, umount "
msgstr "Fout, loskoppelen "
-#: lib/isodumper.py:204
+#: lib/isodumper.py:231
msgid " successfully unmounted"
msgstr " met succes losgekoppeld"
-#: lib/isodumper.py:206
+#: lib/isodumper.py:233
msgid " returned "
msgstr " teruggegaan "
-#: lib/isodumper.py:209
+#: lib/isodumper.py:236
msgid "Execution failed: "
msgstr "Uitvoering mislukt: "
-#: lib/isodumper.py:217
+#: lib/isodumper.py:244
msgid "Could not read mtab !"
msgstr "Kon mtab niet lezen !"
-#: lib/isodumper.py:225 lib/isodumper.py:248
+#: lib/isodumper.py:252 lib/isodumper.py:275
msgid "Reading error."
msgstr "Leesfout."
-#: lib/isodumper.py:231
+#: lib/isodumper.py:258
msgid "You have not the rights for writing on the device"
msgstr "U heeft geen recht om naar het apparaat te schrijven"
-#: lib/isodumper.py:236 lib/isodumper.py:237
+#: lib/isodumper.py:263 lib/isodumper.py:264
msgid " to "
msgstr " naar "
-#: lib/isodumper.py:236
+#: lib/isodumper.py:263
msgid "Writing "
msgstr "Schrijven "
-#: lib/isodumper.py:237
+#: lib/isodumper.py:264
msgid "Executing copy from "
msgstr "Uitvoeren: kopieren van "
-#: lib/isodumper.py:253 lib/isodumper.py:266 lib/isodumper.py:275
+#: lib/isodumper.py:280 lib/isodumper.py:293 lib/isodumper.py:302
msgid "Writing error."
msgstr "Schrijffout. "
-#: lib/isodumper.py:258
+#: lib/isodumper.py:285
msgid "Wrote: "
msgstr "Geschreven: "
-#: lib/isodumper.py:270
+#: lib/isodumper.py:297
msgid " successfully written to "
msgstr " met succes geschreven naar "
-#: lib/isodumper.py:270
+#: lib/isodumper.py:297
msgid "Image "
msgstr "Image "
-#: lib/isodumper.py:271
+#: lib/isodumper.py:298
msgid "Bytes written: "
msgstr "Bytes geschreven: "
f='#n180'>180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
/*
 * Guillaume Cottenceau (gc@mandrakesoft.com)
 *
 * Copyright 2000 Mandrakesoft
 *
 * This software may be freely redistributed under the terms of the GNU
 * public license.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

/*
 * (1) calculate dependencies
 * (2) unarchive relevant modules
 * (3) insmod them
 */

#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include "insmod.h"
#include "stage1.h"
#include "log.h"
#include "mar/mar-extract-only.h"
#include "frontend.h"
#include "mount.h"
#include "modules_descr.h"

#include "modules.h"

static struct module_deps_elem * modules_deps = NULL;

static char archive_name[] = "/modules/modules.mar";
static char additional_archive_name[] = "/tmp/tmpfs/modules.mar";
int allow_additional_modules_floppy = 1;

extern long init_module(void *, unsigned long, const char *);


static const char *moderror(int err)
{
	switch (err) {
	case ENOEXEC:
		return "Invalid module format";
	case ENOENT:
		return "Unknown symbol in module";
	case ESRCH:
		return "Module has wrong symbol version";
	case EINVAL:
		return "Invalid parameters";
	default:
		return strerror(err);
	}
}

static void *grab_file(const char *filename, unsigned long *size)
{
	unsigned int max = 16384;
	int ret, fd;
	void *buffer = malloc(max);

        fd = open(filename, O_RDONLY, 0);
	if (fd < 0)
		return NULL;

	*size = 0;
	while ((ret = read(fd, buffer + *size, max - *size)) > 0) {
		*size += ret;
		if (*size == max)
			buffer = realloc(buffer, max *= 2);
	}
	if (ret < 0) {
		free(buffer);
		buffer = NULL;
	}
	close(fd);
	return buffer;
}

static enum return_type ensure_additional_modules_available(void)
{
#ifdef ENABLE_ADDITIONAL_MODULES
        struct stat statbuf;
        if (stat(additional_archive_name, &statbuf)) {
                char floppy_mount_location[] = "/tmp/floppy";
                char floppy_modules_mar[] = "/tmp/floppy/modules.mar";
                int ret;
                int automatic = 0;

                if (stat("/tmp/tmpfs", &statbuf)) {
                        if (scall(mkdir("/tmp/tmpfs", 0755), "mkdir"))
                                return RETURN_ERROR;
                        if (scall(mount("none", "/tmp/tmpfs", "tmpfs", MS_MGC_VAL, NULL), "mount tmpfs"))
                                return RETURN_ERROR;
                }
                
                if (IS_AUTOMATIC) {
                        unset_automatic();
                        automatic = 1;
                }
          
        retry:
                stg1_info_message("Please insert the Additional Drivers floppy.");;

                while (my_mount(floppy_device(), floppy_mount_location, "ext2", 0) == -1) {
                        enum return_type results = ask_yes_no(errno == ENXIO ?
                                                              "There is no detected floppy drive, or no floppy disk in drive.\nRetry?"
                                                              : errno == EINVAL ?
                                                              "Floppy is not a Linux ext2 floppy in first floppy drive.\nRetry?"
                                                              : "Can't find a linux ext2 floppy in first floppy drive.\nRetry?");
                        if (results != RETURN_OK) {
                                allow_additional_modules_floppy = 0;
                                if (automatic)
                                        set_param(MODE_AUTOMATIC);
                                return results;
                        }
                }
                                
                if (stat(floppy_modules_mar, &statbuf)) {
                        stg1_error_message("This is not an Additional Drivers floppy, as far as I can see.");
                        umount(floppy_mount_location);
                        goto retry;
                }

                init_progression("Copying...", file_size(floppy_modules_mar));
                ret = copy_file(floppy_modules_mar, additional_archive_name, update_progression);
                end_progression();
                umount(floppy_mount_location);
                if (automatic)
                        set_param(MODE_AUTOMATIC);
                return ret;
        } else
                return RETURN_OK;
#else
	allow_additional_modules_floppy = 0;
	return RETURN_ERROR;
#endif
}

int insmod_local_file(char * path, char * options)
{
        if (kernel_version() <= 4) {
                return insmod_call(path, options);
        } else {
                void *file;
                unsigned long len;
                int rc;
                
                file = grab_file(path, &len);
                
                if (!file) {
                        log_perror(asprintf_("\terror reading %s", path));
                        return -1;
                }
                
                rc = init_module(file, len, options ? options : "");
                if (rc)
                        log_message("\terror: %s", moderror(errno));
                return rc;
        }
}

static char *kernel_module_extension(void)
{
  return kernel_version() <= 4 ? ".o" : ".ko";
}

/* unarchive and insmod given module
 * WARNING: module must not contain the trailing ".o"
 */
static enum insmod_return insmod_archived_file(const char * mod_name, char * options, int allow_modules_floppy)
{
	char module_name[50];
	char final_name[50] = "/tmp/";
	int i, rc;

	strncpy(module_name, mod_name, sizeof(module_name));
	strcat(module_name, kernel_module_extension());
	i = mar_extract_file(archive_name, module_name, "/tmp/");
	if (i == 1) {
                static int recurse = 0;
                if (allow_additional_modules_floppy && allow_modules_floppy && !recurse) {
                        recurse = 1;
                        if (ensure_additional_modules_available() == RETURN_OK)
                                i = mar_extract_file(additional_archive_name, module_name, "/tmp/");
                        recurse = 0;
                }
        }
        if (i == 1) {
                log_message("file-not-found-in-archive %s (maybe you can try another boot floppy such as 'hdcdrom_usb.img')", module_name);
                return INSMOD_FAILED_FILE_NOT_FOUND;
        }
	if (i != 0)
		return INSMOD_FAILED;

	strcat(final_name, module_name);

        rc = insmod_local_file(final_name, options);

	unlink(final_name); /* sucking no space left on device */

	if (rc) {
		log_message("\tfailed");
		return INSMOD_FAILED;
	}
	return INSMOD_OK;
}



static int load_modules_dependencies(void)
{
	char * deps_file = "/modules/modules.dep";
	char * buf, * ptr, * start, * end;
	struct stat s;
	int fd, line, i;

	log_message("loading modules dependencies");

	if (IS_TESTING)
		return 0;

	fd = open(deps_file, O_RDONLY);
	if (fd == -1) {
		log_perror(deps_file);
		return -1;
	}
	
	fstat(fd, &s);
	buf = alloca(s.st_size + 1);
	if (read(fd, buf, s.st_size) != (ssize_t)s.st_size) {
		log_perror(deps_file);
		return -1;
	}
	buf[s.st_size] = '\0';
	close(fd);

	ptr = buf;
	line = 0;
	while (ptr) {
		line++;
		ptr = strchr(ptr + 1, '\n');
	}

	modules_deps = malloc(sizeof(*modules_deps) * (line+1));

	start = buf;
	line = 0;
	while (start < (buf+s.st_size) && *start) {
		char * tmp_deps[50];

		end = strchr(start, '\n');
		*end = '\0';

		ptr = strchr(start, ':');
		if (!ptr) {
			start = end + 1;
			continue;
		}
		*ptr = '\0';
		ptr++;

		while (*ptr && (*ptr == ' ')) ptr++;
		if (!*ptr) {
			start = end + 1;
			continue;
		}

		/* sort of a good line */
		modules_deps[line].name = strdup(start);

		start = ptr;
		i = 0;
		while (start && *start) {
			ptr = strchr(start, ' ');
			if (ptr) *ptr = '\0';
			tmp_deps[i++] = strdup(start);
			if (ptr)
				start = ptr + 1;
			else
				start = NULL;
			while (start && *start && *start == ' ')
				start++;
		}
		tmp_deps[i++] = NULL;

		modules_deps[line].deps = memdup(tmp_deps, sizeof(char *) * i);

		line++;
		start = end + 1;
	}
	modules_deps[line].name = NULL;

	return 0;
}


void init_modules_insmoding(void)
{
	if (load_modules_dependencies()) {
		fatal_error("warning, error initing modules stuff, modules loading disabled");
	}
}


static void add_modules_conf(char * str)
{
	static char data[5000] = "";
	char * target = "/tmp/modules.conf";
	int fd;

	if (strlen(data) + strlen(str) >= sizeof(data))
		return;

	strcat(data, str);
	strcat(data, "\n");

	fd = open(target, O_CREAT|O_WRONLY|O_TRUNC, 00660);
	
	if (fd == -1) {
		log_perror(str);
		return;
	}

	if (write(fd, data, strlen(data) + 1) != (ssize_t) (strlen(data) + 1))
		log_perror(str);

	close(fd);
}


int module_already_present(const char * name)
{
	FILE * f;
	int answ = 0;