Skip to content

Commit

Permalink
doc: hostname can have a '-' character
Browse files Browse the repository at this point in the history
rfc952 specifies:

  A "name" (Net, Host, Gateway, or Domain name) is a text string up
     to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
     sign (-), and period (.).  Note that periods are only allowed when
     they serve to delimit components of "domain style names".

Signed-off-by: Jan Vermaete <[email protected]>
  • Loading branch information
vermaete committed Dec 15, 2024
1 parent d98677c commit c59ea83
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions doc/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,7 @@ Implements:
.. code-block:: yaml
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
Expand Down Expand Up @@ -3300,7 +3300,7 @@ Here is an example environment config:
SerialDriver: {}
BareboxDriver: {}
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
BareboxStrategy: {}
Expand Down Expand Up @@ -3347,7 +3347,7 @@ Here is an example environment config:
ManualPowerDriver: {}
SerialDriver: {}
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
ShellStrategy: {}
Expand Down Expand Up @@ -3395,7 +3395,7 @@ Here is an example environment config:
SerialDriver: {}
UBootDriver: {}
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
UBootStrategy: {}
Expand Down
2 changes: 1 addition & 1 deletion doc/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ and ``password`` of the ShellDriver driver in ``local.yaml``:
name: "example"
SerialDriver: {}
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
Expand Down
4 changes: 2 additions & 2 deletions doc/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ access this board:
drivers:
SerialDriver: {}
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
Expand Down Expand Up @@ -665,7 +665,7 @@ setup:
BareboxDriver:
prompt: 'barebox@[^:]+:[^ ]+ '
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
BareboxStrategy: {}
Expand Down
4 changes: 2 additions & 2 deletions man/labgrid-device-config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ A sample configuration with one `main` target, accessible via SerialPort
drivers:
SerialDriver: {}
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'

Expand All @@ -221,7 +221,7 @@ in the loaded local python file:
drivers:
SerialDriver: {}
ShellDriver:
prompt: 'root@\w+:[^ ]+ '
prompt: 'root@[\w-]+:[^ ]+ '
login_prompt: ' login: '
username: 'root'
IMXUSBDriver: {}
Expand Down

0 comments on commit c59ea83

Please sign in to comment.