diff --git a/automount.sh b/automount.sh index ea6f267..2c60765 100755 --- a/automount.sh +++ b/automount.sh @@ -1,7 +1,7 @@ #!/bin/sh mountpoint="/media/video" ### var: mountpoint -mountoptions="ro" ### var: mountoptions +mountoptions="ro -f" ### var: mountoptions device="sda1" ### var: mount device player="randomvideo.sh" ### var: player process diff --git a/randomvideo.sh b/randomvideo.sh index 25494b4..fe74a82 100755 --- a/randomvideo.sh +++ b/randomvideo.sh @@ -31,6 +31,7 @@ if [ -z "$player_path" ]; then fi while true; do + mountstat="$(mount | grep $mountdevice)" if [ -z "$mountstat" ]; then