From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 Date: Wed, 22 Jan 2020 12:33:59 +0300 From: "Alexey V. Vissarionov" To: ALT Linux Team development discussions Message-ID: <20200122093358.GA2035@altlinux.org> References: <20200122120219.1dde25ed@rigel.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200122120219.1dde25ed@rigel.localdomain> Subject: Re: [devel] /etc/services X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jan 2020 09:34:03 -0000 Archived-At: List-Archive: List-Post: On 2020-01-22 12:02:19 +0300, Paul Wolneykien wrote: > Всем привет. Подскажите, а есть у нас штатный способ добавить > порт в /etc/services при установке пакета? egrep -q '\s12345/' /etc/services || printf ... >> /etc/services Для удаления, соответственно: sed -i -re '/\s12345\//' /etc/services Только зачем, если есть SRV-записи в DNS? -- Alexey V. Vissarionov gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net