Module Name: src Committed By: jmcneill Date: Sun Dec 2 15:43:05 UTC 2018
Modified Files: src/distrib/utils/embedded/conf: evbarm.conf Log Message: Fix variable escaping in dev_exists() To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/distrib/utils/embedded/conf/evbarm.conf Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/utils/embedded/conf/evbarm.conf diff -u src/distrib/utils/embedded/conf/evbarm.conf:1.31 src/distrib/utils/embedded/conf/evbarm.conf:1.32 --- src/distrib/utils/embedded/conf/evbarm.conf:1.31 Fri Nov 30 20:53:02 2018 +++ src/distrib/utils/embedded/conf/evbarm.conf Sun Dec 2 15:43:04 2018 @@ -1,4 +1,4 @@ -# $NetBSD: evbarm.conf,v 1.31 2018/11/30 20:53:02 jmcneill Exp $ +# $NetBSD: evbarm.conf,v 1.32 2018/12/02 15:43:04 jmcneill Exp $ # evbarm shared config # image=$HOME/${board}.img @@ -128,7 +128,7 @@ customize_evbarm() { cp ${release}/etc/rc.conf ${mnt}/etc/rc.conf cat >> ${mnt}/etc/rc.conf << EOF dev_exists() { - if /sbin/drvctl -l $1 >/dev/null 2>&1 ; then + if /sbin/drvctl -l \$1 >/dev/null 2>&1 ; then printf YES else printf NO