Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/console-tools/openvt.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/console-tools/openvt.c
r2725 r3232 8 8 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 9 9 */ 10 11 //usage:#define openvt_trivial_usage 12 //usage: "[-c N] [-sw] [PROG ARGS]" 13 //usage:#define openvt_full_usage "\n\n" 14 //usage: "Start PROG on a new virtual terminal\n" 15 //usage: "\n -c N Use specified VT" 16 //usage: "\n -s Switch to the VT" 17 /* //usage: "\n -l Run PROG as login shell (by prepending '-')" */ 18 //usage: "\n -w Wait for PROG to exit" 19 //usage: 20 //usage:#define openvt_example_usage 21 //usage: "openvt 2 /bin/ash\n" 10 22 11 23 #include <linux/vt.h> … … 145 157 if (!argv[0]) { 146 158 argv--; 147 argv[0] = getenv("SHELL"); 148 if (!argv[0]) 149 argv[0] = (char *) DEFAULT_SHELL; 159 argv[0] = (char *) get_shell_name(); 150 160 /*argv[1] = NULL; - already is */ 151 161 }
Note:
See TracChangeset
for help on using the changeset viewer.