:: commit 3bf2635d90bc101d895832bdfec136c34d2d79ba

mintsuki <mintsuki@protonmail.com> — 2021-10-31 19:33

parents: dea6b930dc

console: Remove license command

diff --git a/stage23/console.c b/stage23/console.c
index ee4556de..6685378b 100644
--- a/stage23/console.c
+++ b/stage23/console.c
@@ -14,7 +14,6 @@ static void console_help(void) {
         "exit      -- Return to boot menu.\n"
         "version   -- Print version.\n"
         "copyright -- Print copyright.\n"
-        "license   -- Print license.\n"
         "help      -- Print this help message.\n"
     );
 }
@@ -41,8 +40,7 @@ void console(void) {
         } else if (strcmp(prompt, "copyright") == 0) {
             print(LIMINE_COPYRIGHT "\n");
             print("Limine is distributed under the terms of the BSD-2-Clause license.\n");
-        } else if (strcmp(prompt, "license") == 0) {
-            print("%s", bsd_2_clause);
+            print("There is ABSOLUTELY NO WARRANTY, to the extent permitted by law.\n");
         } else if (*prompt != 0) {
             print("Invalid command: `%s`.\n", prompt);
         }
diff --git a/stage23/lib/blib.c b/stage23/lib/blib.c
index 32224ebd..12f2f7fb 100644
--- a/stage23/lib/blib.c
+++ b/stage23/lib/blib.c
@@ -268,25 +268,3 @@ fail:
 }
 
 #endif
-
-const char bsd_2_clause[] =
-"Redistribution and use in source and binary forms, with or without\n"
-"modification, are permitted provided that the following conditions are met:\n"
-"\n"
-"1. Redistributions of source code must retain the above copyright notice, this\n"
-"   list of conditions and the following disclaimer.\n"
-"\n"
-"2. Redistributions in binary form must reproduce the above copyright notice,\n"
-"   this list of conditions and the following disclaimer in the documentation\n"
-"   and/or other materials provided with the distribution.\n"
-"\n"
-"THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n"
-"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n"
-"IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n"
-"DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n"
-"FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n"
-"DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n"
-"SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n"
-"CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n"
-"OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n"
-"OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n";
tab: 248 wrap: offon