From 7ed3288dec9c83224130b737961c8981e29ea4c7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 20 Sep 2013 19:18:45 -0400 Subject: Rename CONFIG_FEATURE_UNAME_OS_NAME option. --- diff --git a/patches/03_make-uname-info-os-configurable.patch b/patches/03_make-uname-info-os-configurable.patch index 2915f5b..ac14db2 100644 --- a/patches/03_make-uname-info-os-configurable.patch +++ b/patches/03_make-uname-info-os-configurable.patch @@ -11,7 +11,7 @@ diff -Naur src.orig/coreutils/Config.src src/coreutils/Config.src help uname is used to print system information. -+config FEATURE_UNAME_OS_NAME ++config FEATURE_UNAME_OS + string "Operating system name" + default "BusyBox/Linux" + depends on UNAME @@ -33,7 +33,7 @@ diff -Naur src.orig/coreutils/uname.c src/coreutils/uname.c //usage: "$ uname -a\n" -//usage: "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n" +//usage: "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 " -+//usage: CONFIG_FEATURE_UNAME_OS_NAME "\n" ++//usage: CONFIG_FEATURE_UNAME_OS "\n" #include "libbb.h" /* After libbb.h, since it needs sys/types.h on some systems */ @@ -42,7 +42,7 @@ diff -Naur src.orig/coreutils/uname.c src/coreutils/uname.c char processor[sizeof(((struct utsname*)NULL)->machine)]; char platform[sizeof(((struct utsname*)NULL)->machine)]; - char os[sizeof("GNU/Linux")]; -+ char os[sizeof(CONFIG_FEATURE_UNAME_OS_NAME)]; ++ char os[sizeof(CONFIG_FEATURE_UNAME_OS)]; } uname_info_t; static const char options[] ALIGN1 = "snrvmpioa"; @@ -51,7 +51,7 @@ diff -Naur src.orig/coreutils/uname.c src/coreutils/uname.c strcpy(uname_info.processor, unknown_str); strcpy(uname_info.platform, unknown_str); - strcpy(uname_info.os, "GNU/Linux"); -+ strcpy(uname_info.os, CONFIG_FEATURE_UNAME_OS_NAME); ++ strcpy(uname_info.os, CONFIG_FEATURE_UNAME_OS); #if 0 /* Fedora does something like this */ strcpy(uname_info.processor, uname_info.name.machine); -- cgit v0.9.1