-# $OpenBSD: install.md,v 1.39 2015/05/31 19:40:10 rpe Exp $
+# $OpenBSD: install.md,v 1.40 2015/06/02 19:39:18 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
- if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then
+ if fdisk $_disk | grep -q '^..: A6 '; then
_q=", use the (O)penBSD area,"
_d=OpenBSD
fi
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac
-# $OpenBSD: install.md,v 1.18 2015/05/31 19:40:10 rpe Exp $
+# $OpenBSD: install.md,v 1.19 2015/06/02 19:39:18 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
- if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then
+ if fdisk $_disk | grep -q '^..: A6 '; then
_q=", use the (O)penBSD area,"
_d=OpenBSD
fi
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac
-# $OpenBSD: install.md,v 1.10 2015/06/02 01:48:25 jsg Exp $
+# $OpenBSD: install.md,v 1.11 2015/06/02 19:39:19 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
else
echo "MBR has invalid signature; not showing it."
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac
-# $OpenBSD: install.md,v 1.62 2015/05/31 19:40:10 rpe Exp $
+# $OpenBSD: install.md,v 1.63 2015/06/02 19:39:19 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
- if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then
+ if fdisk $_disk | grep -q '^..: A6 '; then
_q=", use the (O)penBSD area,"
_d=OpenBSD
fi
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac
-# $OpenBSD: install.md,v 1.32 2015/05/31 19:40:10 rpe Exp $
+# $OpenBSD: install.md,v 1.33 2015/06/02 19:39:19 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
- if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then
+ if fdisk $_disk | grep -q '^..: A6 '; then
_q=", use the (O)penBSD area,"
_d=OpenBSD
fi
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac
-# $OpenBSD: install.md,v 1.8 2015/05/31 19:40:10 rpe Exp $
+# $OpenBSD: install.md,v 1.9 2015/06/02 19:39:19 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
- if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then
+ if fdisk $_disk | grep -q '^..: A6 '; then
_q=", use the (O)penBSD area,"
_d=OpenBSD
fi
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac
-# $OpenBSD: install.md,v 1.20 2015/05/31 19:40:10 rpe Exp $
+# $OpenBSD: install.md,v 1.21 2015/06/02 19:39:19 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
- if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then
+ if fdisk $_disk | grep -q '^..: A6 '; then
_q=", use the (O)penBSD area,"
_d=OpenBSD
fi
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac
-# $OpenBSD: install.md,v 1.33 2015/05/31 19:40:11 rpe Exp $
+# $OpenBSD: install.md,v 1.34 2015/06/02 19:39:19 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
while :; do
_d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
+ if fdisk $_disk | grep -q 'Signature: 0xAA55'; then
fdisk $_disk
- if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then
+ if fdisk $_disk | grep -q '^..: A6 '; then
_q=", use the (O)penBSD area,"
_d=OpenBSD
fi
$(fdisk ${_disk})
__EOT
fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
+ fdisk $_disk | grep -q ' A6 ' && return
echo No OpenBSD partition in MBR, try again. ;;
o*|O*) return ;;
esac