diff options
author | Xi Ruoyao <xry111@xry111.site> | 2022-06-23 18:12:37 +0800 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2022-06-24 09:07:42 -0500 |
commit | 8e9d4bf851830405c707e74ac842af38ae1d89aa (patch) | |
tree | 9dd334dc24bfefb4b5ba27be1bf8979aed9036bf | |
parent | 995347dad8e2921e64ca1e0d70dcb973e98ad3ef (diff) |
bootscripts: change obsoleted egrep to grep -E
-rw-r--r-- | bootscripts/lfs/init.d/cleanfs | 2 | ||||
-rw-r--r-- | bootscripts/lfs/init.d/modules | 2 |
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:" |