... | ... |
@@ -97,8 +97,8 @@ function mpd_tablette () { |
97 | 97 |
local tablette=192.168.0.53 |
98 | 98 |
local port=6600 |
99 | 99 |
local media='/media/musique' |
100 |
-# local nfs=$(ss -no state established 'sport = :nfs' dst $tablette | grep -c $) |
|
101 |
- test $nfs -lt 3 && echo "tablette non connectée à la zique" |
|
100 |
+ local nfs=$(ss -no state established 'sport = :nfs' dst $tablette | grep -c $) |
|
101 |
+ test $nfs -lt 2 && echo "tablette non connectée à la zique" |
|
102 | 102 |
nc -zw2 $tablette $port || echo "MPD injoignable" |
103 | 103 |
test $(showmount --all --no-headers | grep -c $tablette:$media) -eq 1 || echo "$media pas exporté" |
104 | 104 |
} |