s
This commit is contained in:
parent
1ffce6abe3
commit
cde3db8d55
@ -463,7 +463,7 @@ btrfs-tweaks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialize-disk() {
|
initialize-disk() {
|
||||||
SWAP_SIZE=$(expr $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g' | sed 's/kB//') / 1024)
|
SWAP_SIZE=$(expr $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g' | sed 's/kB//') / 1000 / 1000)
|
||||||
echo "Test $SWAP_SIZE + $ROOT_PARTITION_SIZE"
|
echo "Test $SWAP_SIZE + $ROOT_PARTITION_SIZE"
|
||||||
SWAP_SIZE_END="$(expr $(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE) / 1000)"
|
SWAP_SIZE_END="$(expr $(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE) / 1000)"
|
||||||
echo "Start: $ROOT_PARTITION_SIZE END: $SWAP_SIZE_END"
|
echo "Start: $ROOT_PARTITION_SIZE END: $SWAP_SIZE_END"
|
||||||
|
Loading…
Reference in New Issue
Block a user