some bugfixes in automount.sh for killing player
This commit is contained in:
parent
386ddff770
commit
dd4aff0992
|
@ -36,7 +36,6 @@ while true; do
|
|||
echo "Terminating $playersh"
|
||||
pkill $playersh
|
||||
echo "Done!"
|
||||
fi
|
||||
|
||||
playerstat="$(pgrep $player)"
|
||||
if [ -n "$playerstat" ]; then
|
||||
|
@ -45,6 +44,8 @@ while true; do
|
|||
echo "Done!"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
echo "Umounting $mountpoint"
|
||||
sudo umount $mountpoint
|
||||
echo "Done!"
|
||||
|
|
Loading…
Reference in New Issue