]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
default support
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 12 May 2010 15:55:37 +0000 (17:55 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 12 May 2010 15:55:37 +0000 (17:55 +0200)
commands/legacycfg.c

index 6069fe746ac0aa086f7ae7f9e1066b601ff71d06..46637c3013515846cab66064bfb8727677d38dd1 100644 (file)
@@ -66,8 +66,7 @@ struct legacy_command legacy_commands[] =
     {"debug",
      "if [ -z \"$debug\" ]; then set debug=all; else set debug=; fi\n",
      0, {}, 0},
-    /* FIXME: Implement command.  */
-    {"default", "legacy_default %s\n", 1, {TYPE_INT}, 0},
+    {"default", "set default='%s'; if [ x\"$default\" = xsaved ]; then load_env; set default=\"$saved_entry\"\n", 1, {TYPE_VERBATIM}, 0},
     /* dhcp unsupported.  */
     /* displayapm unsupported.  */
     {"displaymem", "lsmem\n", 0, {}, 0},