Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/init/halt.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/init/halt.c

    r2725 r3232  
    88 */
    99
    10 //applet:IF_HALT(APPLET(halt, _BB_DIR_SBIN, _BB_SUID_DROP))
    11 //applet:IF_HALT(APPLET_ODDNAME(poweroff, halt, _BB_DIR_SBIN, _BB_SUID_DROP, poweroff))
    12 //applet:IF_HALT(APPLET_ODDNAME(reboot, halt, _BB_DIR_SBIN, _BB_SUID_DROP, reboot))
     10//applet:IF_HALT(APPLET(halt, BB_DIR_SBIN, BB_SUID_DROP))
     11//applet:IF_HALT(APPLET_ODDNAME(poweroff, halt, BB_DIR_SBIN, BB_SUID_DROP, poweroff))
     12//applet:IF_HALT(APPLET_ODDNAME(reboot, halt, BB_DIR_SBIN, BB_SUID_DROP, reboot))
    1313
    1414//kbuild:lib-$(CONFIG_HALT) += halt.o
     
    4444//usage:#define halt_full_usage "\n\n"
    4545//usage:       "Halt the system\n"
    46 //usage:     "\nOptions:"
    4746//usage:     "\n    -d SEC  Delay interval"
    4847//usage:     "\n    -n  Do not sync"
     
    5655//usage:#define poweroff_full_usage "\n\n"
    5756//usage:       "Halt and shut off power\n"
    58 //usage:     "\nOptions:"
    5957//usage:     "\n    -d SEC  Delay interval"
    6058//usage:     "\n    -n  Do not sync"
     
    6563//usage:#define reboot_full_usage "\n\n"
    6664//usage:       "Reboot the system\n"
    67 //usage:     "\nOptions:"
    6865//usage:     "\n    -d SEC  Delay interval"
    6966//usage:     "\n    -n  Do not sync"
     
    7572#if ENABLE_FEATURE_WTMP
    7673#include <sys/utsname.h>
    77 #include <utmp.h>
    7874
    7975static void write_wtmp(void)
     
    159155                 * 0 == shutdown
    160156                 * 6 == reboot */
    161                 rc = execlp(CONFIG_TELINIT_PATH,
     157                execlp(CONFIG_TELINIT_PATH,
    162158                        CONFIG_TELINIT_PATH,
    163159                        which == 2 ? "6" : "0",
    164160                        (char *)NULL
    165161                );
     162                bb_perror_msg_and_die("can't execute '%s'",
     163                        CONFIG_TELINIT_PATH);
    166164            }
    167165        }
Note: See TracChangeset for help on using the changeset viewer.