mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
grep -q is always silentÄ
This commit is contained in:
parent
ea85b0a049
commit
3d7194255f
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ _auto_swap () {
|
|||
_auto_mdadm()
|
||||
{
|
||||
if [[ -e ${_DESTDIR}/etc/mdadm.conf ]]; then
|
||||
if grep -q ^md /proc/mdstat 2>/dev/null; then
|
||||
if grep -q ^md /proc/mdstat; then
|
||||
_dialog --infobox "Enable mdadm settings on installed system ..." 3 70
|
||||
mdadm -Ds >> "${_DESTDIR}"/etc/mdadm.conf
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue