You want to connect to the next available port?

yeah, and I'll work up a diff so that newfs without any arguements
initializes the next partition.

The concept is ridiculous.

> On Tue, Jan 09, 2018 at 01:44:04PM -0700, Theo de Raadt wrote:
> > No way.
> > 
> > No justification provided for anyone to want this feature.
> > 
> 
> Np, this is just what i want this for:
> 
> ucom0 at uchcom0
> ucom1 at uplcom0
> ucom2 at uslcom0 portno 0
> ucom3 at uftdi0 portno 1
> ucom4 at uftdi1 portno 1
> ucom5 at uftdi2 portno 1
> ucom6 at uftdi3 portno 1
> ucom7 at uftdi4 portno 1
> ucom8 at umodem0
> 
> $ usbdevs           
> addr 1: xHCI root hub, NEC
>  addr 2: Cypress USB Keyboard / PS2 Mouse, Cypress
>  addr 3: Razer Naga Hex, Razer
> addr 1: EHCI root hub, NEC
> addr 1: OHCI root hub, NEC
>  addr 2: USB Hub 2.0, ALCOR
>   addr 3: USB Hub 2.0, ALCOR
>    addr 4: CH340 serial/parallel, QinHeng Electronics
>    addr 5: USB-Serial Controller, Prolific Technology Inc.
>    addr 6: CP2104 USB to UART Bridge Controller, Silicon Labs
>   addr 7: FT232R USB UART, FTDI
>  addr 8: USB Hub 2.0, ALCOR
>   addr 9: USB Hub 2.0, ALCOR
>    addr 10: FT232R USB UART, FTDI
>    addr 11: FT232R USB UART, FTDI
>    addr 12: FT232R USB UART, FTDI
>   addr 13: FT232R USB UART, FTDI
>   addr 14: STM32 STLink, STMicroelectronics
> 
> 
> and here's how it looks when working:
> 
> $ ./cu -115200
> cu: open("/dev/cua00"): Device busy
> cu: open("/dev/cua00"): Device busy
> cu: open("/dev/cua01"): Device not configured
> cu: open("/dev/cua02"): Device not configured
> cu: open("/dev/cua03"): Device not configured
> cu: open("/dev/cua04"): Device not configured
> cu: open("/dev/cua05"): Device not configured
> cu: open("/dev/cua06"): Device not configured
> cu: open("/dev/cua07"): Device not configured
> cu: open("/dev/cua08"): Device not configured
> cu: open("/dev/cua09"): Device not configured
> cu: open("/dev/cuaU0"): Device busy
> Connected to /dev/cuaU1 (speed 115200)
> 
> av7bbb#
> av7bbb#
> [EOT]
> 
>  $
>  $ ./cu -115200 -l cua00
> cu: open("/dev/cua00"): Device busy
>  $ cu -115200 -l cuaU2
> cu: open("/dev/cuaU2"): Device busy
>  $
> 

Reply via email to