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/setconsole.c

    r2725 r3232  
    88 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    99 */
     10
     11//usage:#define setconsole_trivial_usage
     12//usage:       "[-r" IF_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]"
     13//usage:#define setconsole_full_usage "\n\n"
     14//usage:       "Redirect system console output to DEVICE (default: /dev/tty)\n"
     15//usage:     "\n    -r  Reset output to /dev/console"
    1016
    1117#include "libbb.h"
     
    3541    }
    3642
    37     xioctl(xopen(device, O_RDONLY), TIOCCONS, NULL);
     43    xioctl(xopen(device, O_WRONLY), TIOCCONS, NULL);
    3844    return EXIT_SUCCESS;
    3945}
Note: See TracChangeset for help on using the changeset viewer.