discover/grub2: Implement save_env command
[petitboot] / discover / grub2 / builtins.c
index 71ae61a3ae97118ed63e7f30303e2c4d4c09dd7c..c218bc7d07155bd6426d630f26bf623f0bcb4bb6 100644 (file)
@@ -259,6 +259,10 @@ static int builtin_nop(struct grub2_script *script __attribute__((unused)),
 extern int builtin_load_env(struct grub2_script *script,
                void *data __attribute__((unused)),
                int argc, char *argv[]);
+int builtin_save_env(struct grub2_script *script,
+               void *data __attribute__((unused)),
+               int argc, char *argv[]);
+
 
 static struct {
        const char *name;
@@ -304,6 +308,10 @@ static struct {
                .name = "load_env",
                .fn = builtin_load_env,
        },
+       {
+               .name = "save_env",
+               .fn = builtin_save_env,
+       },
 };
 
 static const char *nops[] = {