diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-08-22 23:27:53 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-08-22 23:27:53 +0000 |
commit | 47ef1384d491d1f178d76ebb32c2a62d2d01653f (patch) | |
tree | 98e6cd3328bfad1c6221b31423a0615e1f7c9e29 /distrib/armv7 | |
parent | 9963414ab0fd7d757bd9816f1714fbd33518bdf2 (diff) |
scan_dmesg sorts words within a hardware model string. Switch to using
the hw.product sysctl to avoid the problem.
ok deraadt@ rpe@ kettenis@
Diffstat (limited to 'distrib/armv7')
-rw-r--r-- | distrib/armv7/ramdisk/install.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/distrib/armv7/ramdisk/install.md b/distrib/armv7/ramdisk/install.md index 658c957caeb..2b3390a2aeb 100644 --- a/distrib/armv7/ramdisk/install.md +++ b/distrib/armv7/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.46 2017/07/28 18:15:44 rpe Exp $ +# $OpenBSD: install.md,v 1.47 2017/08/22 23:27:52 jsg Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. @@ -37,8 +37,7 @@ MOUNT_ARGS_msdos="-o-l" md_installboot() { local _disk=/dev/$1 _mdec _plat - # Identify ARMv7 platform based on dmesg. - case $(scan_dmesg 's/^mainbus0 at root: \(.*\)$/\1/p') in + case $(sysctl -n hw.product) in *AM335x*) _plat=am335x;; *'OMAP3 BeagleBoard'*) _plat=beagle;; *OMAP4*) _plat=panda;; |