summaryrefslogtreecommitdiffstats
path: root/Makefile.config
blob: dabf65a5be37a6c3a01c6595acf507ce27fbb069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

_DISTRIB_NAME := $(shell sed -n '/^.*distribution=\([^,]*\),.*/s//\1/p' /etc/product.id)
DISTRIB_NAME = "$(_DISTRIB_NAME)"
DISTRIB_VERSION = $(shell sed -n '/^.*version=\([^,]*\),.*/s//\1/p' /etc/product.id)
DISTRIB_TYPE = $(shell sed -n '/^.*type=\([^,]*\),.*/s//\1/p' /etc/product.id)
DISTRIB_DESCR = "$(_DISTRIB_NAME) release $(DISTRIB_VERSION)"


# not config, but useful everywhere :)
ARCH := $(patsubst i%86,i386,$(shell uname -m))
ARCH := $(ARCH:sparc%=sparc)
ARCH := $(ARCH:arm%=arm)

PKG_ARCH := $(ARCH:i386=i586)

ifeq (x86_64, $(ARCH))
LIB = lib64
else
LIB = lib
endif
2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index c5a2a3a12..2adb960fd 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1010,7 +1010,7 @@ notation (for example, 1.2.3.4).")),
}
},
focus_out => sub {
- $ethntf->{NETMASK} ||= netmask($ethntf->{IPADDR}) unless $_[0];
+ $ethntf->{NETMASK} ||= netmask($ethntf->{IPADDR}) unless $ethntf->{NETMASK};
},
post => sub {
$ethntf->{ONBOOT} = bool2yesno($onboot);