wip
This commit is contained in:
parent
0c02fe3f41
commit
1a0bda34de
2 changed files with 9 additions and 1 deletions
2
unbox.sh
2
unbox.sh
|
@ -6,7 +6,7 @@ source $(dirname $0)/utils.sh
|
||||||
function unbox_outer_stage(){
|
function unbox_outer_stage(){
|
||||||
echo "-----------FIRST STAGE-----------"
|
echo "-----------FIRST STAGE-----------"
|
||||||
|
|
||||||
apt install git dialog
|
apt install git util-linux
|
||||||
|
|
||||||
if [ -e repo ]; then
|
if [ -e repo ]; then
|
||||||
(cd repo; git pull)
|
(cd repo; git pull)
|
||||||
|
|
8
utils.sh
8
utils.sh
|
@ -5,3 +5,11 @@ function prefix_time(){
|
||||||
echo "["$(date)"] "$LINE
|
echo "["$(date)"] "$LINE
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mem_size(){
|
||||||
|
echo $(($(cat /proc/meminfo | grep MemTotal | awk '{print $2}')*1024))
|
||||||
|
}
|
||||||
|
|
||||||
|
function dev_size(){
|
||||||
|
blockdev --getsize64 $1
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue