Date: Mon, 3 Nov 2014 21:03:55 +0000 (UTC) From: John-Mark Gurney <jmg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r274060 - head/etc/rc.d Message-ID: <201411032103.sA3L3tmi018867@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jmg Date: Mon Nov 3 21:03:54 2014 New Revision: 274060 URL: https://svnweb.freebsd.org/changeset/base/274060 Log: switch from spaces to tabs to match style and awk... Pointed out by: brooks Modified: head/etc/rc.d/growfs Modified: head/etc/rc.d/growfs ============================================================================== --- head/etc/rc.d/growfs Mon Nov 3 19:23:49 2014 (r274059) +++ head/etc/rc.d/growfs Mon Nov 3 21:03:54 2014 (r274060) @@ -49,20 +49,20 @@ rcvar="growfs_enable" growfs_start () { - echo "Growing root partition to fill device" - rootdev=$(df / | tail -n 1 | awk '{ sub("/dev/", "", $1); print $1 }') - if [ x"$rootdev" = x"${rootdev%/*}" ]; then - # raw device - rawdev="$rootdev" - else - rawdev=$(glabel status | awk '$1 == "'"$rootdev"'" { print $3 }') - if [ x"$rawdev" = x"" ]; then - echo "Can't figure out device for: $rootdev" - return + echo "Growing root partition to fill device" + rootdev=$(df / | tail -n 1 | awk '{ sub("/dev/", "", $1); print $1 }') + if [ x"$rootdev" = x"${rootdev%/*}" ]; then + # raw device + rawdev="$rootdev" + else + rawdev=$(glabel status | awk '$1 == "'"$rootdev"'" { print $3 }') + if [ x"$rawdev" = x"" ]; then + echo "Can't figure out device for: $rootdev" + return + fi fi - fi - sysctl -b kern.geom.conftxt | awk ' + sysctl -b kern.geom.conftxt | awk ' { lvl=$1 device[lvl] = $3 @@ -91,7 +91,7 @@ growfs_start () exit 0 } }' dev="$rawdev" - growfs -y /dev/"$rootdev" + growfs -y /dev/"$rootdev" } load_rc_config $name
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411032103.sA3L3tmi018867>