network: adapt to all GREP -EL command

Signed-off-by: zhanglu <zhanglu37@huawei.com>
This commit is contained in:
Anonymous_Z 2020-03-05 09:58:36 +08:00
parent 6868ca3969
commit da387a0e26
2 changed files with 22 additions and 9 deletions

View File

@ -1,17 +1,15 @@
From df22ec994da59550f065dbd4bc6b554f789f3ed0 Mon Sep 17 00:00:00 2001
From 8db1d31e6715dce9d34dbcaaa85b38646b2ec3d1 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Tue, 3 Mar 2020 11:49:58 +0800
Subject: [PATCH] initscripts: adapt to GREP command line
Date: Thu, 5 Mar 2020 09:48:44 +0800
Subject: [PATCH] initscripts:adapt to the grep command
Type:bugfix
CVE:
Signed-off-by: zhanglu <zhanglu37@huawei.com>
---
etc/rc.d/init.d/network | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
etc/rc.d/init.d/network | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/etc/rc.d/init.d/network b/etc/rc.d/init.d/network
index f69948e..069442f 100755
index f69948e..9a0c3f3 100755
--- a/etc/rc.d/init.d/network
+++ b/etc/rc.d/init.d/network
@@ -132,7 +132,7 @@ start)
@ -23,6 +21,15 @@ index f69948e..069442f 100755
# this loads the module, to preserve ordering
is_available $i
continue
@@ -149,7 +149,7 @@ start)
# Bring up xDSL and VPN interfaces
for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces $vpninterfaces ; do
- if ! LANG=C grep -EL "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
+ if LANG=C grep -EL "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
if [ "$godamon" != "1" ] ; then
action $"Bringing up interface $i: " ./ifup $i boot
[ $? -ne 0 ] && rc=1
--
1.8.3.1

View File

@ -20,7 +20,7 @@ Requires: gawk \
Name: initscripts
Summary: Basic support for legacy System V init scripts
Version: 10.01
Release: 5
Release: 6
License: GPLv2
@ -361,6 +361,12 @@ fi
# =============================================================================
%changelog
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 10.01-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:adapt to the grep command line
* Tue Mar 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 10.01-5
- Type:bugfix
- ID:NA