... | ... |
@@ -91,12 +91,4 @@ function mem_pressure () { |
91 | 91 |
test ${meminfo[i+2]} -ge ${#range[@]} || echo "${level[${meminfo[i+2]}]}: available ${meminfo[i+1]}kB" |
92 | 92 |
} |
93 | 93 |
|
94 |
-function mpd_tablette () { |
|
95 |
- local tablette=192.168.0.53 |
|
96 |
- local port=6600 |
|
97 |
- local media='/media/musique' |
|
98 |
- local nfs=$(ss -no state established 'sport = :nfs' dst $tablette | grep -c $) |
|
99 |
- test $nfs -lt 2 && echo "tablette non connectée à la zique" |
|
100 |
- nc -zw2 $tablette $port || echo "MPD injoignable" |
|
101 |
- test $(showmount --all --no-headers | grep -c $tablette:$media) -eq 1 || echo "$media pas exporté" |
|
102 | 94 |
} |