ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] tiny patch on initscripts
@ 2001-07-17  6:36 Mikhail Zabaluev
  0 siblings, 0 replies; only message in thread
From: Mikhail Zabaluev @ 2001-07-17  6:36 UTC (permalink / raw)
  To: devel


[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-17  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-17  6:36 [devel] tiny patch on initscripts Mikhail Zabaluev

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