This commit is contained in:
j3d1 2020-01-31 11:16:17 +01:00
parent 0c02fe3f41
commit 1a0bda34de
2 changed files with 9 additions and 1 deletions

View file

@ -6,7 +6,7 @@ source $(dirname $0)/utils.sh
function unbox_outer_stage(){
echo "-----------FIRST STAGE-----------"
apt install git dialog
apt install git util-linux
if [ -e repo ]; then
(cd repo; git pull)

View file

@ -5,3 +5,11 @@ function prefix_time(){
echo "["$(date)"] "$LINE
done
}
function mem_size(){
echo $(($(cat /proc/meminfo | grep MemTotal | awk '{print $2}')*1024))
}
function dev_size(){
blockdev --getsize64 $1
}