[PATCH 1/1] setserial typo baund_base

C. Handel opensource at macht-blau.org
Fri Mar 22 14:42:16 UTC 2013


in setserial there is a typo baund_base it should be baud_base.

for example:
setserial /dev/ttyS4 uart 16550A port 0x0208 irq 5 baund_base 115200
spd_normal skip_test

The patch fixes the usage message and adds the baud_base option but
leaves baund_base as option to avoid breaking existing setups.

Greetings
   Christoph


--- busybox-1.21.0/miscutils/setserial.c	2012-12-22 23:39:01.000000000 +0100
+++ busybox-1.21.0.new/miscutils/setserial.c	2013-03-22 15:35:35.301870105 +0100
@@ -223,7 +223,7 @@
 //usage:	"	-v	Verbose\n"
 //usage:	"\n"
 //usage:	"Parameters: (* = takes an argument, ^ = can be turned off
by preceding ^)\n"
-//usage:	"	*port, *irq, *divisor, *uart, *baund_base, *close_delay,
*closing_wait,\n"
+//usage:	"	*port, *irq, *divisor, *uart, *baud_base, *close_delay,
*closing_wait,\n"
 //usage:	"	^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout,
^pgrp_lockout,\n"
 //usage:	"	^callout_nohup, ^split_termios, ^hup_notify, ^low_latency,
autoconfig,\n"
 //usage:	"	spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust\n"
@@ -311,6 +311,7 @@
 	"irq\0"
 	"divisor\0"
 	"uart\0"
+	"baud_base\0"
 	"baund_base\0"
 	"close_delay\0"
 	"closing_wait\0"
@@ -343,6 +344,7 @@
 	CMD_DIVISOR,
 	CMD_UART,
 	CMD_BASE,
+	CMD_BASE,
 	CMD_DELAY,
 	CMD_WAIT,


More information about the busybox mailing list