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