This commit is contained in:
2023-11-20 07:12:42 -06:00
parent 1118bdaa15
commit cb35daab78

View File

@@ -48,7 +48,8 @@ mount_dayz_network_drive() {
-o uid=1000 \ -o uid=1000 \
-o gid=1000 \ -o gid=1000 \
-o iocharset=utf8 \ -o iocharset=utf8 \
-o vers=3.0 -o vers=3.0 \
-o rw
esac esac
unset ver unset ver
@@ -68,6 +69,14 @@ is_network_drive_mounted() {
if [ ! -f "$REMOTE_DIR/canary" ] ; then if [ ! -f "$REMOTE_DIR/canary" ] ; then
return 1 return 1
fi fi
# test write
touch /mnt/dayz/canary.test
if [ $? -eq 0 ] ; then
rm /mnt/dayz/canary.test
else
errmsg "Mounted network drive but we do not have write access."
exit 1
fi
} }
################### GLOBAL FUNCTIONS ######################### ################### GLOBAL FUNCTIONS #########################