mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01: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})
|
(exit ${failed})
|
||||||
evaluate_retval
|
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... "
|
log_info_msg "Creating files and directories... "
|
||||||
create_files # Always returns 0
|
create_files # Always returns 0
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
|
@ -35,7 +35,7 @@ case "${1}" in
|
|||||||
# Exit if there's no modules file or there are no
|
# Exit if there's no modules file or there are no
|
||||||
# valid entries
|
# valid entries
|
||||||
[ -r /etc/sysconfig/modules ] || exit 0
|
[ -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:"
|
log_info_msg "Loading modules:"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user