From owner-svn-src-head@FreeBSD.ORG Sun May 10 21:32:34 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 356785DD for ; Sun, 10 May 2015 21:32:34 +0000 (UTC) Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5A981ED3 for ; Sun, 10 May 2015 21:32:33 +0000 (UTC) Received: by igbyr2 with SMTP id yr2so56098681igb.0 for ; Sun, 10 May 2015 14:32:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4S5P2omIefr8uyl8TknuZRKfdEs2PVH5kAm0XpkuFaI=; b=U2TUZaKlgZMrMx+EWyn2O/BLKNl8b79YpsE6d3ds4Ojt3gwgZtRzYliTv6Om643yTA YXBdetGp49Byomym1D7brAx6xZi/gVpLkFHRPdgRSHthPL+2zpmUCmQPcy/HroOuWfuX JXW9yCasXG58fGmkW/KBqGCTGdSz28G96p0VfAvwPvtdpp5CMFr7sG4Ufi5gjicIjbzN GqnRQB+xocIpA/OuuXWxaGvTkHNZWRjFlR354foiNSnFlyDi/b31Svku8Ozon7ILmG63 oqAFjhoxAKVS91/KVNnaXjjuNBLXuufLjTOB+r8A8oHP9gYrBlSuXIR/zfc899eFzIow 9AuQ== X-Gm-Message-State: ALoCoQkoyT8JvRKir7FkWQtMZZWkrgjZFBP/cKYYIKMz8+YZBnLEfNY4AAwszjS2q+IblNOiCV4v MIME-Version: 1.0 X-Received: by 10.107.165.206 with SMTP id o197mr9313020ioe.56.1431293547393; Sun, 10 May 2015 14:32:27 -0700 (PDT) Received: by 10.79.11.6 with HTTP; Sun, 10 May 2015 14:32:27 -0700 (PDT) In-Reply-To: References: <201505082336.t48NaWRS080408@svn.freebsd.org> Date: Sun, 10 May 2015 23:32:27 +0200 Message-ID: Subject: Re: svn commit: r282672 - head/etc/rc.d From: Oliver Pinter To: John Baldwin Cc: Xin LI , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 May 2015 21:32:34 -0000 On Sun, May 10, 2015 at 9:45 PM, John Baldwin wrote: > >> On May 8, 2015, at 19:36, Xin LI wrote: >> >> Author: delphij >> Date: Fri May 8 23:36:31 2015 >> New Revision: 282672 >> URL: https://svnweb.freebsd.org/changeset/base/282672 >> >> Log: >> Always convert uuid to lower case. >> >> MFC after: 2 weeks >> >> Modified: >> head/etc/rc.d/hostid >> >> Modified: head/etc/rc.d/hostid >> ============================================================================== >> --- head/etc/rc.d/hostid Fri May 8 23:29:42 2015 (r282671) >> +++ head/etc/rc.d/hostid Fri May 8 23:36:31 2015 (r282672) >> @@ -58,7 +58,7 @@ hostid_set() >> >> valid_hostid() >> { >> - uuid=$1 >> + uuid=$(echo $1 | tr '[:upper:]' '[:lower:]') > > tr is in /usr/bin so this breaks systems with a separate /usr. Perhaps you could use dd with conv=lcase instead? Then these are affected too:: root@robot rc.d# grep -r -E '(awk| tr )' * ftp-proxy: ps_pid=`ps ax -o pid= -o command= | grep $cmd_string | grep -e "$flag_string" | grep -v grep | awk '{ print $1 }'` growfs: rootdev=$(df / | tail -n 1 | awk '{ sub("/dev/", "", $1); print $1 }') growfs: rawdev=$(glabel status | awk '$1 == "'"$rootdev"'" { print $3 }') growfs: sysctl -b kern.geom.conftxt | awk ' jail: _j=$(echo $_j | tr /. _) jail: _j=$(echo $1 | tr /. _) jail: _j=$(echo $_j | tr /. _) jail: _j=$(echo $_j | tr /. _) jail: _j=$(echo $_j | tr /. _) motd: awk '{if (NR == 1) {if ($1 == "FreeBSD") {next} else {print "\n"$0}} else {print}}' < /etc/motd >> ${T} ntpdate: ntpdate_hosts=`awk ' power_profile: awk '{ split($0, a, "[/ ]"); print a[1] }' -) 2> /dev/null`" power_profile: awk '{ split($0, a, "[/ ]"); print a[length(a) - 1] }' -) 2> /dev/null`" sshd: local ALG="$(echo $alg | tr a-z A-Z)" syscons: for i in `kldstat | awk '$5 ~ "_saver\.ko$" { print $5 }'`; do syslogd: for _s in `cat $sockfile | tr '\n' ' '` ; do virecover: recfile=`awk '/^X-vi-recover-path:/{print $2}' < "${i}"` The awk is located in /usr/bin/awk too, and for e.g. the growfs should running in the very first steps... > > > -- > John Baldwin > _______________________________________________ > svn-src-head@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org"