/*
* load kernel modules
*
- * Copyright (C) 2011-21012 Kay Sievers <kay.sievers@vrfy.org>
+ * Copyright (C) 2011-2012 Kay Sievers <kay@vrfy.org>
* Copyright (C) 2011 ProFUSION embedded systems
*
* This program is free software: you can redistribute it and/or modify
struct kmod_list *l;
int err;
- assert(ctx);
-
err = kmod_module_new_from_lookup(ctx, alias, &list);
if (err < 0)
return err;
struct udev *udev = udev_device_get_udev(dev);
int i;
+ if (!ctx)
+ return 0;
+
if (argc < 3 || strcmp(argv[1], "load")) {
log_error("expect: %s load <module>\n", argv[0]);
return EXIT_FAILURE;