summaryrefslogtreecommitdiff
path: root/distrib/armv7
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2015-12-23 13:31:23 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2015-12-23 13:31:23 +0000
commit1a648b32d7d17bbfe7625be60950abaf10b315d4 (patch)
tree2f4f3bf8a4bfdef2a432e38ccb3f7f753921b4fb /distrib/armv7
parent537c68b30b17ee1edd264f17b8b77f2c6309b0d3 (diff)
Simplify things by using grep -q.
OK krw@, halex@, jsg@
Diffstat (limited to 'distrib/armv7')
-rw-r--r--distrib/armv7/ramdisk/install.md20
1 files changed, 9 insertions, 11 deletions
diff --git a/distrib/armv7/ramdisk/install.md b/distrib/armv7/ramdisk/install.md
index 98b15791ace..8797ea9153a 100644
--- a/distrib/armv7/ramdisk/install.md
+++ b/distrib/armv7/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.21 2015/12/18 16:20:58 rpe Exp $
+# $OpenBSD: install.md,v 1.22 2015/12/23 13:31:22 rpe Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -35,25 +35,23 @@
# This code runs when the script is initally sourced to set up
# MDSETS, SANESETS and DEFAULTSETS
-dmesg | grep "^omap0 at mainbus0:" >/dev/null
-if [[ $? == 0 ]]; then
+if dmesg | grep -q '^omap0 at mainbus0:'; then
MDPLAT=OMAP
LOADADDR=0x82800000
fi
-dmesg | grep "^imx0 at mainbus0:" >/dev/null
-if [[ $? == 0 ]]; then
+
+if dmesg | grep -q '^imx0 at mainbus0:'; then
MDPLAT=IMX
LOADADDR=0x18800000
fi
-dmesg | grep "^sunxi0 at mainbus0:" >/dev/null
-if [[ $? == 0 ]]; then
+
+if dmesg | grep '^sunxi0 at mainbus0:'; then
MDPLAT=SUNXI
LOADADDR=0x40200000
fi
-dmesg | grep "^vexpress0 at mainbus0:" >/dev/null
-if [[ $? == 0 ]]; then
- dmesg | grep "^cpu0 at mainbus0: ARM Cortex A9 " >/dev/null
- if [[ $? == 0 ]]; then
+
+if dmesg | grep -q '^vexpress0 at mainbus0:'; then
+ if dmesg | grep -q '^cpu0 at mainbus0: ARM Cortex A9 '; then
MDPLAT=VEXPRESSA9
LOADADDR=0x60300000
else