Quellcode durchsuchen

Timeout the mount operation

Zachary Kotlarek vor 12 Jahren
Ursprung
Commit
282b78b30a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      mountMedia

+ 1 - 1
mountMedia

@@ -55,7 +55,7 @@ if [ -z "${MEDIA}" ]; then
 	fi
 	fi
 	if [ $LOCKED -eq 0 ]; then
 	if [ $LOCKED -eq 0 ]; then
 		echo $$ > "${LOCK}"
 		echo $$ > "${LOCK}"
-		osascript -e 'tell application "Finder" to mount volume "smb://'"${REMOTE_USER}@${HOST}/${SHARE}"'"'
+		~/bin/video/timeout -t 30 osascript -e 'tell application "Finder" to mount volume "smb://'"${REMOTE_USER}@${HOST}/${SHARE}"'"'
 		sleep 5
 		sleep 5
 		rm -f "${LOCK}"
 		rm -f "${LOCK}"
 	fi
 	fi