diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/03_make-uname-info-os-configurable.patch | 8 |
1 files changed, 4 insertions, 4 deletions
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); |