mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 15:10:38 +01:00
get action
This commit is contained in:
parent
9d72acaa22
commit
480ea781a7
1 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,12 @@ if [ "$EUID" -ne 0 ]
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 1st PARAMETER: action
|
||||||
|
action=$1
|
||||||
|
|
||||||
|
#########################
|
||||||
|
# STATUS
|
||||||
|
|
||||||
# gather data on sd card
|
# gather data on sd card
|
||||||
minimumSizeByte=8192000000
|
minimumSizeByte=8192000000
|
||||||
rootPartition=$(sudo mount | grep " / " | cut -d " " -f 1 | cut -d "/" -f 3)
|
rootPartition=$(sudo mount | grep " / " | cut -d " " -f 1 | cut -d "/" -f 3)
|
||||||
|
@ -46,6 +52,9 @@ if [ "${action}" == "status" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
###########################
|
||||||
|
# EXPAND FILE SYSTEM OF SD
|
||||||
|
|
||||||
if [ "${action}" == "fsexpand" ]; then
|
if [ "${action}" == "fsexpand" ]; then
|
||||||
|
|
||||||
echo "# starting expand of file system of sd card"
|
echo "# starting expand of file system of sd card"
|
||||||
|
|
Loading…
Add table
Reference in a new issue