mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-05 14:03:17 +02:00
fix temp mount
This commit is contained in:
@@ -766,8 +766,8 @@ if [ "$1" = "tempmount" ]; then
|
|||||||
echo "error='temp mount failed'"
|
echo "error='temp mount failed'"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "isMounted=1"
|
isMounted=1
|
||||||
echo "isBTRFS=0"
|
isBTRFS=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "${hddFormat}" = "btrfs" ]; then
|
elif [ "${hddFormat}" = "btrfs" ]; then
|
||||||
@@ -788,8 +788,8 @@ if [ "$1" = "tempmount" ]; then
|
|||||||
echo "error='temp mount failed'"
|
echo "error='temp mount failed'"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "isMounted=1"
|
isMounted=1
|
||||||
echo "isBTRFS=1"
|
isBTRFS=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -797,6 +797,10 @@ if [ "$1" = "tempmount" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# outputting change state
|
||||||
|
echo "isMounted=${isMounted}"
|
||||||
|
echo "isBTRFS=${isBTRFS}"
|
||||||
|
|
||||||
# trigger linking
|
# trigger linking
|
||||||
doLinking=1
|
doLinking=1
|
||||||
|
|
||||||
@@ -808,7 +812,7 @@ fi
|
|||||||
|
|
||||||
if [ "$1" = "link" ] || [ ${doLinking} -eq 1 ]; then
|
if [ "$1" = "link" ] || [ ${doLinking} -eq 1 ]; then
|
||||||
|
|
||||||
if [ ${isMounted} -eq 0 ]; then
|
if [ ${isMounted} -eq 0 ] ; then
|
||||||
echo "error='no data drive mounted'"
|
echo "error='no data drive mounted'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user