bb_applet_name -> applet_name

This commit is contained in:
Denis Vlasenko
2006-10-03 21:00:43 +00:00
parent 67b23e6043
commit 8f8f268cfd
45 changed files with 71 additions and 69 deletions

View File

@@ -31,7 +31,7 @@ RB_AUTOBOOT
int which, flags, rc = 1;
/* Figure out which applet we're running */
for(which=0;delay[which]!=*bb_applet_name;which++);
for(which=0;delay[which]!=*applet_name;which++);
/* Parse and handle arguments */
flags = getopt32(argc, argv, "d:nf", &delay);

View File

@@ -195,7 +195,7 @@ static void message(int device, const char *fmt, ...)
/* Log the message to syslogd */
if (device & LOG) {
/* don`t out "\r\n" */
openlog(bb_applet_name, 0, LOG_DAEMON);
openlog(applet_name, 0, LOG_DAEMON);
syslog(LOG_INFO, "%s", msg + 1);
closelog();
}
@@ -982,7 +982,7 @@ int init_main(int argc, char **argv)
#if !ENABLE_DEBUG_INIT
/* Expect to be invoked as init with PID=1 or be invoked as linuxrc */
if (getpid() != 1 &&
(!ENABLE_FEATURE_INITRD || !strstr(bb_applet_name, "linuxrc")))
(!ENABLE_FEATURE_INITRD || !strstr(applet_name, "linuxrc")))
{
bb_show_usage();
}

View File

@@ -31,7 +31,7 @@ int bb_shutdown_system(unsigned long magic)
#endif
reboot(RB_ENABLE_CAD);
openlog(bb_applet_name, 0, pri);
openlog(applet_name, 0, pri);
message = "\nThe system is going down NOW !!";
syslog(pri, "%s", message);