mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
check mount on error output
This commit is contained in:
parent
763eba6891
commit
d7fc22dd8a
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ if [ "$1" = "status" ]; then
|
|||
|
||||
# temp mount data drive
|
||||
sudo mkdir -p /mnt/hdd
|
||||
sudo mount /dev/${hdd}1 /mnt/hdd
|
||||
errorOutput=$(sudo mount /dev/${hdd}1 /mnt/hdd 2>&1 >/dev/null)
|
||||
echo "errorOutput='${errorOutput}'"
|
||||
|
||||
isTempMounted=$(df | grep /mnt/hdd | grep -c ${hdd})
|
||||
if [ ${isTempMounted} -eq 0 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue