Project

General

Profile

Actions

Feature #4587

open

Add port numbers to /etc/services during installation

Added by laforge almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
06/06/2020
Due date:
% Done:

0%

Spec Reference:

Description

I think it would be great if we'd add the /etc/services snippet from Port_Numbers to /etc/services during the installation. This enables people to do telnet localhost osm-msc or the like, without having to memorize port numbers all the time.

It's a bit ugly as there is no /etc/services.d or the like, so we have to add/patch the services to the file.

In order to do that reasonable, the related postinst script should (for each service)
  • check if the entry already exists, and do nothing if it does
  • append the entry to the end of the file, if no entry exists yet

We could do this in bulk from libosmocore, or we could add/remove each individual line for each program we install from the respective osmo-* package.

The alternative would be to ship something like an 'osmo-telnet' client program that would have compile-time knowledge about the port numbers. As we already maintain a fork of libtelnet.git on osmocom.org, that may be an option...


Files

vty vty 1.26 KB 'expect' script that connects to osmocom vty by name neels, 06/08/2020 10:25 AM

Related issues

Related to Cellular Network Infrastructure - Feature #5013: investigate "vtysh" for OsmocomNew02/06/2021

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)