mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 04:57:38 +00:00
bootscripts: change obsoleted egrep to grep -E
This commit is contained in:
parent
40488bd037
commit
bfc6495520
@ -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
|
||||
|
@ -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:"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user