Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugins/alsa-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
static void save(void *arg)
{
if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "alsa-utils");
return;
}

Expand All @@ -51,7 +51,7 @@ static void save(void *arg)
static void restore(void *arg)
{
if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "alsa-utils");
return;
}

Expand All @@ -62,7 +62,7 @@ static void restore(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "alsa-utils",
.hook[HOOK_BASEFS_UP] = { .cb = restore },
.hook[HOOK_SHUTDOWN] = { .cb = save }
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/bootmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static void setup(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "bootmisc",
.hook[HOOK_MOUNT_POST] = { .cb = clean },
.hook[HOOK_BASEFS_UP] = { .cb = setup },
.depends = { "pidfile" },
Expand Down
4 changes: 2 additions & 2 deletions plugins/dbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static void setup(void *arg)
char *cmd;

if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "dbus");
return;
}

Expand Down Expand Up @@ -164,7 +164,7 @@ static void setup(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "dbus",
.hook[HOOK_SVC_PLUGIN] = { .cb = setup },
};

Expand Down
2 changes: 1 addition & 1 deletion plugins/hook-scripts.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void hscript_shutdown(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "hook-scripts",
.hook[HOOK_BANNER] = { .cb = hscript_banner },
.hook[HOOK_ROOTFS_UP] = { .cb = hscript_rootfs_up },
.hook[HOOK_MOUNT_ERROR] = { .cb = hscript_mount_error },
Expand Down
2 changes: 1 addition & 1 deletion plugins/modprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static void coldplug(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "modprobe",
.hook[HOOK_BASEFS_UP] = { .cb = coldplug },
.depends = { "bootmisc", }
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules-load.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static void load(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "modules-load",
.hook[HOOK_SVC_PLUGIN] = { .cb = load },
};

Expand Down
2 changes: 1 addition & 1 deletion plugins/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static void nl_enumerate(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "netlink",
.hook[HOOK_SVC_RECONF] = { .cb = nl_reconf },
.hook[HOOK_SVC_PLUGIN] = { .cb = nl_enumerate },
.io = {
Expand Down
2 changes: 1 addition & 1 deletion plugins/pidfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static void pidfile_init(void *arg)
* SIGSTP:ed (in state PAUSED) waiting for <net/iface/lo>.
*/
static plugin_t plugin = {
.name = __FILE__,
.name = "pidfile",
.hook[HOOK_BASEFS_UP] = { .cb = pidfile_init },
.hook[HOOK_SVC_RECONF] = { .cb = pidfile_reconf },
.depends = { "netlink" }, /* bootmisc depends on us */
Expand Down
4 changes: 2 additions & 2 deletions plugins/procps.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static void setup(void *arg)
glob_t gl;

if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "procps");
return;
}

Expand All @@ -69,7 +69,7 @@ static void setup(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "procps",
.hook[HOOK_BASEFS_UP] = {
.cb = setup
},
Expand Down
2 changes: 1 addition & 1 deletion plugins/resolvconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static void setup(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "resolvconf",
.hook[HOOK_BASEFS_UP] = {
.cb = setup
},
Expand Down
6 changes: 3 additions & 3 deletions plugins/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static void rtc_save(void *arg)
int fd, rc = 0;

if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "rtc");
return;
}

Expand Down Expand Up @@ -266,7 +266,7 @@ static void rtc_restore(void *arg)
int fd, rc = 0;

if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "rtc");
return;
}

Expand Down Expand Up @@ -321,7 +321,7 @@ static void update(uev_t *w, void *arg, int events)


static plugin_t plugin = {
.name = __FILE__,
.name = "rtc",
.hook[HOOK_BASEFS_UP] = {
.cb = rtc_restore
},
Expand Down
2 changes: 1 addition & 1 deletion plugins/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static void sys_init(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "sys",
.hook[HOOK_BASEFS_UP] = { .cb = sys_init },
.depends = { "bootmisc", },
};
Expand Down
1 change: 1 addition & 0 deletions plugins/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
static void tty_watcher(void *arg, int fd, int events);

static plugin_t plugin = {
.name = "tty",
.io = {
.cb = tty_watcher,
.flags = PLUGIN_IO_READ,
Expand Down
6 changes: 3 additions & 3 deletions plugins/urandom.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static void setup(void *arg)
int fd, err;

if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "urandom");
return;
}

Expand Down Expand Up @@ -188,7 +188,7 @@ static void save(void *arg)
mode_t prev;

if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "urandom");
return;
}

Expand All @@ -202,7 +202,7 @@ static void save(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "urandom",
.hook[HOOK_BASEFS_UP] = { .cb = setup },
.hook[HOOK_SHUTDOWN] = { .cb = save },
.depends = { "bootmisc", }
Expand Down
2 changes: 1 addition & 1 deletion plugins/usr.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static void usr_init(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "usr",
.hook[HOOK_BASEFS_UP] = { .cb = usr_init },
.depends = { "bootmisc", },
};
Expand Down
4 changes: 2 additions & 2 deletions plugins/x11-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
static void setup(void *arg)
{
if (rescue) {
dbg("Skipping %s plugin in rescue mode.", __FILE__);
dbg("Skipping %s plugin in rescue mode.", "x11-common");
return;
}

Expand All @@ -48,7 +48,7 @@ static void setup(void *arg)
}

static plugin_t plugin = {
.name = __FILE__,
.name = "x11-common",
.hook[HOOK_SVC_PLUGIN] = { .cb = setup },
};

Expand Down