Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/miscutils/runlevel.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/miscutils/runlevel.c
r1765 r2725 1 1 /* vi: set sw=4 ts=4: */ 2 2 /* 3 * runlevelPrints out the previous and the current runlevel.3 * Prints out the previous and the current runlevel. 4 4 * 5 * Version: 5 * Version: @(#)runlevel 1.20 16-Apr-1997 MvS 6 6 * 7 * 8 * 7 * This file is part of the sysvinit suite, 8 * Copyright 1991-1997 Miquel van Smoorenburg. 9 9 * 10 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 11 11 * 12 * initially busyboxified by Bernhard Fischer12 * initially busyboxified by Bernhard Reutner-Fischer 13 13 */ 14 #include "libbb.h" 15 #include <utmp.h> 14 16 15 #include <utmp.h> 16 #include "libbb.h" 17 18 int runlevel_main(int argc, char **argv); 19 int runlevel_main(int argc, char **argv) 17 int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 18 int runlevel_main(int argc UNUSED_PARAM, char **argv) 20 19 { 21 20 struct utmp *ut; 22 21 char prev; 23 22 24 if (arg c > 1) utmpname(argv[1]);23 if (argv[1]) utmpname(argv[1]); 25 24 26 25 setutent();
Note:
See TracChangeset
for help on using the changeset viewer.