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 ()
{
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