mirror of https://github.com/mirror/busybox.git
Use date -u instead of date --utc and consolidate version string.
Patch by Larry Doolittle <ldoolitt@recycle.lbl.gov>.1_00_stable_10817
parent
5a65413c04
commit
6ba1a80c26
2
Makefile
2
Makefile
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
PROG := busybox
|
PROG := busybox
|
||||||
VERSION := 0.51
|
VERSION := 0.51
|
||||||
BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z")
|
BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z")
|
||||||
export VERSION
|
export VERSION
|
||||||
|
|
||||||
# With a modern GNU make(1) (highly recommended, that's what all the
|
# With a modern GNU make(1) (highly recommended, that's what all the
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")"
|
||||||
|
|
||||||
#ifdef DMALLOC
|
#ifdef DMALLOC
|
||||||
#include "dmalloc.h"
|
#include "dmalloc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")"
|
||||||
|
|
||||||
#ifdef DMALLOC
|
#ifdef DMALLOC
|
||||||
#include "dmalloc.h"
|
#include "dmalloc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
2
klogd.c
2
klogd.c
|
@ -76,7 +76,7 @@ static void doKlogd (void)
|
||||||
/* "Open the log. Currently a NOP." */
|
/* "Open the log. Currently a NOP." */
|
||||||
klogctl(1, NULL, 0);
|
klogctl(1, NULL, 0);
|
||||||
|
|
||||||
syslog_msg(LOG_DAEMON, 0, "klogd started: BusyBox v" BB_VER " (" BB_BT ")");
|
syslog_msg(LOG_DAEMON, 0, "klogd started: " BB_BANNER);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
/* Use kernel syscalls */
|
/* Use kernel syscalls */
|
||||||
|
|
|
@ -48,8 +48,7 @@
|
||||||
|
|
||||||
|
|
||||||
#if defined bb_need_full_version || ! defined BB_DECLARE_EXTERN
|
#if defined bb_need_full_version || ! defined BB_DECLARE_EXTERN
|
||||||
BB_DEF_MESSAGE(full_version,
|
BB_DEF_MESSAGE(full_version, BB_BANNER " multi-call binary")
|
||||||
"BusyBox v" BB_VER " (" BB_BT ") multi-call binary")
|
|
||||||
#endif
|
#endif
|
||||||
#if defined bb_need_name_too_long || ! defined BB_DECLARE_EXTERN
|
#if defined bb_need_name_too_long || ! defined BB_DECLARE_EXTERN
|
||||||
BB_DEF_MESSAGE(name_too_long, "file name too long")
|
BB_DEF_MESSAGE(name_too_long, "file name too long")
|
||||||
|
|
|
@ -76,7 +76,7 @@ static void doKlogd (void)
|
||||||
/* "Open the log. Currently a NOP." */
|
/* "Open the log. Currently a NOP." */
|
||||||
klogctl(1, NULL, 0);
|
klogctl(1, NULL, 0);
|
||||||
|
|
||||||
syslog_msg(LOG_DAEMON, 0, "klogd started: BusyBox v" BB_VER " (" BB_BT ")");
|
syslog_msg(LOG_DAEMON, 0, "klogd started: " BB_BANNER);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
/* Use kernel syscalls */
|
/* Use kernel syscalls */
|
||||||
|
|
|
@ -528,7 +528,7 @@ static void doSyslogd (void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
logMessage (0, "syslogd started: BusyBox v" BB_VER " (" BB_BT ")");
|
logMessage (0, "syslogd started: " BB_BANNER);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue