diff options
author | jmg <jmg@FreeBSD.org> | 2014-11-03 21:03:54 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2014-11-03 21:03:54 +0000 |
commit | 0f07da924ef52c311e695b2dcd2b82fdbd330bb3 (patch) | |
tree | 07352cfe1b320cf7c72dad0e835da5047d78e612 /etc/rc.d/growfs | |
parent | e0f7993862a0fd0f5f90788f945a842deced8420 (diff) | |
download | FreeBSD-src-0f07da924ef52c311e695b2dcd2b82fdbd330bb3.zip FreeBSD-src-0f07da924ef52c311e695b2dcd2b82fdbd330bb3.tar.gz |
switch from spaces to tabs to match style and awk...
Pointed out by: brooks
Diffstat (limited to 'etc/rc.d/growfs')
-rwxr-xr-x | etc/rc.d/growfs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/etc/rc.d/growfs b/etc/rc.d/growfs index db87d29..ec3633d 100755 --- a/etc/rc.d/growfs +++ b/etc/rc.d/growfs @@ -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 |