Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/init/halt.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/init/halt.c
r2725 r3232 8 8 */ 9 9 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)) 13 13 14 14 //kbuild:lib-$(CONFIG_HALT) += halt.o … … 44 44 //usage:#define halt_full_usage "\n\n" 45 45 //usage: "Halt the system\n" 46 //usage: "\nOptions:"47 46 //usage: "\n -d SEC Delay interval" 48 47 //usage: "\n -n Do not sync" … … 56 55 //usage:#define poweroff_full_usage "\n\n" 57 56 //usage: "Halt and shut off power\n" 58 //usage: "\nOptions:"59 57 //usage: "\n -d SEC Delay interval" 60 58 //usage: "\n -n Do not sync" … … 65 63 //usage:#define reboot_full_usage "\n\n" 66 64 //usage: "Reboot the system\n" 67 //usage: "\nOptions:"68 65 //usage: "\n -d SEC Delay interval" 69 66 //usage: "\n -n Do not sync" … … 75 72 #if ENABLE_FEATURE_WTMP 76 73 #include <sys/utsname.h> 77 #include <utmp.h>78 74 79 75 static void write_wtmp(void) … … 159 155 * 0 == shutdown 160 156 * 6 == reboot */ 161 rc =execlp(CONFIG_TELINIT_PATH,157 execlp(CONFIG_TELINIT_PATH, 162 158 CONFIG_TELINIT_PATH, 163 159 which == 2 ? "6" : "0", 164 160 (char *)NULL 165 161 ); 162 bb_perror_msg_and_die("can't execute '%s'", 163 CONFIG_TELINIT_PATH); 166 164 } 167 165 }
Note:
See TracChangeset
for help on using the changeset viewer.