aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-06-23 18:12:37 +0800
committerXi Ruoyao <xry111@xry111.site>2022-06-23 18:12:37 +0800
commitbfc6495520f79cc627206abe295a979655cbe871 (patch)
tree1c6ce87b538cb50bd22e0bf0cfecfa40ee2db706
parent40488bd037b36726f17c26bba8f2b36e051db0a2 (diff)
bootscripts: change obsoleted egrep to grep -E
-rw-r--r--bootscripts/lfs/init.d/cleanfs2
-rw-r--r--bootscripts/lfs/init.d/modules2
2 files changed, 2 insertions, 2 deletions
diff --git a/bootscripts/lfs/init.d/cleanfs b/bootscripts/lfs/init.d/cleanfs
index c75923c34..9ab994fcc 100644
--- a/bootscripts/lfs/init.d/cleanfs
+++ b/bootscripts/lfs/init.d/cleanfs
@@ -105,7 +105,7 @@ case "${1}" in
(exit ${failed})
evaluate_retval
- if egrep -qv '^(#|$)' /etc/sysconfig/createfiles 2>/dev/null; then
+ if grep -E -qv '^(#|$)' /etc/sysconfig/createfiles 2>/dev/null; then
log_info_msg "Creating files and directories... "
create_files # Always returns 0
evaluate_retval
diff --git a/bootscripts/lfs/init.d/modules b/bootscripts/lfs/init.d/modules
index 3ef4cec0d..19d7b1388 100644
--- a/bootscripts/lfs/init.d/modules
+++ b/bootscripts/lfs/init.d/modules
@@ -35,7 +35,7 @@ case "${1}" in
# Exit if there's no modules file or there are no
# valid entries
[ -r /etc/sysconfig/modules ] || exit 0
- egrep -qv '^($|#)' /etc/sysconfig/modules || exit 0
+ grep -E -qv '^($|#)' /etc/sysconfig/modules || exit 0
log_info_msg "Loading modules:"