switch from spaces to tabs to match style and awk...

Pointed out by:	brooks
This commit is contained in:
jmg 2014-11-03 21:03:54 +00:00
parent e0f7993862
commit 0f07da924e

View File

@ -49,20 +49,20 @@ rcvar="growfs_enable"
growfs_start () growfs_start ()
{ {
echo "Growing root partition to fill device" echo "Growing root partition to fill device"
rootdev=$(df / | tail -n 1 | awk '{ sub("/dev/", "", $1); print $1 }') rootdev=$(df / | tail -n 1 | awk '{ sub("/dev/", "", $1); print $1 }')
if [ x"$rootdev" = x"${rootdev%/*}" ]; then if [ x"$rootdev" = x"${rootdev%/*}" ]; then
# raw device # raw device
rawdev="$rootdev" rawdev="$rootdev"
else else
rawdev=$(glabel status | awk '$1 == "'"$rootdev"'" { print $3 }') rawdev=$(glabel status | awk '$1 == "'"$rootdev"'" { print $3 }')
if [ x"$rawdev" = x"" ]; then if [ x"$rawdev" = x"" ]; then
echo "Can't figure out device for: $rootdev" echo "Can't figure out device for: $rootdev"
return return
fi
fi fi
fi
sysctl -b kern.geom.conftxt | awk ' sysctl -b kern.geom.conftxt | awk '
{ {
lvl=$1 lvl=$1
device[lvl] = $3 device[lvl] = $3
@ -91,7 +91,7 @@ growfs_start ()
exit 0 exit 0
} }
}' dev="$rawdev" }' dev="$rawdev"
growfs -y /dev/"$rootdev" growfs -y /dev/"$rootdev"
} }
load_rc_config $name load_rc_config $name