Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 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/console-tools/openvt.c

    r2725 r3232  
    88 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    99 */
     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"
    1022
    1123#include <linux/vt.h>
     
    145157    if (!argv[0]) {
    146158        argv--;
    147         argv[0] = getenv("SHELL");
    148         if (!argv[0])
    149             argv[0] = (char *) DEFAULT_SHELL;
     159        argv[0] = (char *) get_shell_name();
    150160        /*argv[1] = NULL; - already is */
    151161    }
Note: See TracChangeset for help on using the changeset viewer.