summaryrefslogtreecommitdiffhomepage
path: root/src/loader/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/cfg.c')
-rw-r--r--src/loader/cfg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/loader/cfg.c b/src/loader/cfg.c
index 9f2e06a..2c6cce3 100644
--- a/src/loader/cfg.c
+++ b/src/loader/cfg.c
@@ -191,12 +191,18 @@ static void cfg_print(void)
log("[CFG] Entry: %s at %s\n", cfg.entry[i].name, cfg.entry[i].path);
}
+// Execute entry implementation
+void cfg_exec(struct cfg_entry *entry)
+{
+ impl_exec(entry->dev, &entry->path[cfg_path_disk(entry->path) + 1]);
+}
+
void cfg_read(void)
{
dev_foreach(DEV_DISK, &cfg_find);
if (!file[0])
panic("No config found\n");
cfg_parse();
- cfg_print();
cfg_verify();
+ cfg_print();
}