commit: 7b11c3a8a55ffb81ec3194545639513011c7ec54 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Thu Oct 20 17:59:25 2022 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Thu Oct 20 17:59:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b11c3a8
sys-fs/cryptsetup: replace egrep in init script Closes: https://bugs.gentoo.org/877699 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> .../{cryptsetup-2.4.3-r1.ebuild => cryptsetup-2.4.3-r2.ebuild} | 0 sys-fs/cryptsetup/files/2.4.3-dmcrypt.rc | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild b/sys-fs/cryptsetup/cryptsetup-2.4.3-r2.ebuild similarity index 100% rename from sys-fs/cryptsetup/cryptsetup-2.4.3-r1.ebuild rename to sys-fs/cryptsetup/cryptsetup-2.4.3-r2.ebuild diff --git a/sys-fs/cryptsetup/files/2.4.3-dmcrypt.rc b/sys-fs/cryptsetup/files/2.4.3-dmcrypt.rc index 0903ac5eabd0..3b3c57da1c00 100644 --- a/sys-fs/cryptsetup/files/2.4.3-dmcrypt.rc +++ b/sys-fs/cryptsetup/files/2.4.3-dmcrypt.rc @@ -109,7 +109,7 @@ dm_crypt_execute() { # ${target} is active: # Newer versions report: # ${target} is active[ and is in use.] - if cryptsetup ${header_opt} status ${target} | egrep -q ' is active' ; then + if cryptsetup ${header_opt} status ${target} | grep -E -q ' is active' ; then einfo "dm-crypt mapping ${target} is already configured" return fi @@ -329,7 +329,7 @@ stop() { # Break down all mappings print_header=true - egrep "^(target|swap)=" ${conf_file} | \ + grep -E "^(target|swap)=" ${conf_file} | \ while read line ; do ${print_header} && einfo "Removing dm-crypt mappings" print_header=false
