ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: devel@altlinux.ru
Subject: [devel] tiny patch on initscripts
Date: Tue, 17 Jul 2001 10:36:37 +0400
Message-ID: <20010717103636.A4258@localhost.localdomain> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 275 bytes --]

Доброго времени суток.

Обнаружил маленькую, но обидную "неоптимальность" в
/etc/sysconfig/network-scripts/network-functions
- патч приложен.

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
Metermaids eat their young.

[-- Attachment #1.2: initscripts-optimize-need_hostname.patch --]
[-- Type: text/plain, Size: 468 bytes --]

--- network-functions.orig	Mon Jun 25 01:43:27 2001
+++ network-functions	Tue Jul 17 10:30:02 2001
@@ -48,8 +48,11 @@
 
 need_hostname()
 {
-    if [ "`hostname`" = "(none)" -o "`hostname`" = "localhost" -o \
-	 "`hostname`" = "localhost.localdomain" ]; then
+	local hostname
+
+	hostname="`hostname`"
+    if [ "$hostname" = "(none)" -o "$hostname" = "localhost" -o \
+	 "$hostname" = "localhost.localdomain" ]; then
 	NEEDHOSTNAME=yes
     else
 	unset NEEDHOSTNAME

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

                 reply	other threads:[~2001-07-17  6:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010717103636.A4258@localhost.localdomain \
    --to=mhz@alt-linux.org \
    --cc=devel@altlinux.ru \
    --cc=devel@linux.iplabs.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git