SHA256
1
0
forked from pool/rp-pppoe

Accepting request 1001160 from network

- Converted usage of egrep to "grep -E" (boo#1203092).

OBS-URL: https://build.opensuse.org/request/show/1001160
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rp-pppoe?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2022-09-06 11:00:42 +00:00 committed by Git OBS Bridge
commit a236790810
6 changed files with 17 additions and 12 deletions

View File

@ -43,8 +43,8 @@ get_device() {
fi fi
cd $NETWORKDIR cd $NETWORKDIR
interfaces=$($LS ifcfg-ppp* 2>/dev/null | egrep -v '(~|\.bak)$' | \ interfaces=$($LS ifcfg-ppp* 2>/dev/null | grep -E -v '(~|\.bak)$' | \
egrep -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g') grep -E -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g')
for i in $interfaces ; do for i in $interfaces ; do
test -f ifcfg-$i && . ifcfg-$i 2>/dev/null test -f ifcfg-$i && . ifcfg-$i 2>/dev/null

View File

@ -46,8 +46,8 @@ get_device() {
fi fi
cd $NETWORKDIR cd $NETWORKDIR
interfaces=$($LS ifcfg-ppp* 2>/dev/null | egrep -v '(~|\.bak)$' | \ interfaces=$($LS ifcfg-ppp* 2>/dev/null | grep -E -v '(~|\.bak)$' | \
egrep -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g') grep -E -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g')
for i in $interfaces ; do for i in $interfaces ; do
test -f ifcfg-$i && . ifcfg-$i 2>/dev/null test -f ifcfg-$i && . ifcfg-$i 2>/dev/null
@ -466,9 +466,9 @@ else
cp /dev/null $CHAPFILE.bak cp /dev/null $CHAPFILE.bak
fi fi
egrep -v "^$USER|^\"$USER\"" $PAPFILE.bak > $PAPFILE grep -E -v "^$USER|^\"$USER\"" $PAPFILE.bak > $PAPFILE
$ECHO "\"$USER\" * \"$PWD1\"" >> $PAPFILE $ECHO "\"$USER\" * \"$PWD1\"" >> $PAPFILE
egrep -v "^$USER|^\"$USER\"" $CHAPFILE.bak > $CHAPFILE grep -E -v "^$USER|^\"$USER\"" $CHAPFILE.bak > $CHAPFILE
$ECHO "\"$USER\" * \"$PWD1\"" >> $CHAPFILE $ECHO "\"$USER\" * \"$PWD1\"" >> $CHAPFILE
$ECHO "" $ECHO ""

View File

@ -40,8 +40,8 @@ get_device() {
fi fi
cd $NETWORKDIR cd $NETWORKDIR
interfaces=$($LS ifcfg-ppp* 2>/dev/null | egrep -v '(~|\.bak)$' | \ interfaces=$($LS ifcfg-ppp* 2>/dev/null | grep -E -v '(~|\.bak)$' | \
egrep -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g') grep -E -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g')
for i in $interfaces ; do for i in $interfaces ; do
test -f ifcfg-$i && . ifcfg-$i 2>/dev/null test -f ifcfg-$i && . ifcfg-$i 2>/dev/null

View File

@ -32,8 +32,8 @@ get_device() {
fi fi
cd $NETWORKDIR cd $NETWORKDIR
interfaces=$($LS ifcfg-ppp* 2>/dev/null | egrep -v '(~|\.bak)$' | \ interfaces=$($LS ifcfg-ppp* 2>/dev/null | grep -E -v '(~|\.bak)$' | \
egrep -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g') grep -E -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g')
for i in $interfaces ; do for i in $interfaces ; do
test -f ifcfg-$i && . ifcfg-$i 2>/dev/null test -f ifcfg-$i && . ifcfg-$i 2>/dev/null

View File

@ -38,8 +38,8 @@ get_device() {
fi fi
cd $NETWORKDIR cd $NETWORKDIR
interfaces=$($LS ifcfg-ppp* 2>/dev/null | egrep -v '(~|\.bak)$' | \ interfaces=$($LS ifcfg-ppp* 2>/dev/null | grep -E -v '(~|\.bak)$' | \
egrep -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g') grep -E -v '(rpmsave|rpmorig|rpmnew)' | sed 's/^ifcfg-//g')
for i in $interfaces ; do for i in $interfaces ; do
test -f ifcfg-$i && . ifcfg-$i 2>/dev/null test -f ifcfg-$i && . ifcfg-$i 2>/dev/null

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 4 17:53:20 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
- Converted usage of egrep to "grep -E" (boo#1203092).
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 10 13:47:22 UTC 2022 - Илья Индиго <ilya@ilya.cf> Thu Mar 10 13:47:22 UTC 2022 - Илья Индиго <ilya@ilya.cf>