Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/embedded/conf Silence a warning when machdep.d...



details:   https://anonhg.NetBSD.org/src/rev/dabe1b282aac
branches:  trunk
changeset: 372203:dabe1b282aac
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 30 15:08:50 2022 +0000

description:
Silence a warning when machdep.dmi.chassis-asset-tag is not present

diffstat:

 distrib/utils/embedded/conf/evbarm.conf |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7cf8cb4e677a -r dabe1b282aac distrib/utils/embedded/conf/evbarm.conf
--- a/distrib/utils/embedded/conf/evbarm.conf   Sun Oct 30 14:08:09 2022 +0000
+++ b/distrib/utils/embedded/conf/evbarm.conf   Sun Oct 30 15:08:50 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: evbarm.conf,v 1.40 2022/10/15 18:32:30 jmcneill Exp $
+# $NetBSD: evbarm.conf,v 1.41 2022/10/30 15:08:50 jmcneill Exp $
 # evbarm shared config
 #
 image=$HOME/${board}.img
@@ -154,7 +154,7 @@
        fi
 
        # Oracle OCI
-       case "\$(/sbin/sysctl -n machdep.dmi.chassis-asset-tag)" in
+       case "\$(/sbin/sysctl -n machdep.dmi.chassis-asset-tag 2>/dev/null)" in
        OracleCloud*)
                ret=YES
                ;;



Home | Main Index | Thread Index | Old Index