mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
switch from spaces to tabs to match style and awk...
Pointed out by: brooks
This commit is contained in:
parent
e4919241ae
commit
965f2b1b64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274060
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user