blob: 446af5c9e79f5863a1ef41aa140e7300287293f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
set -o pipefail
onlyFs='\(^/dev/\)\|\(ncpfs\)\|\(fuse.sshfs\)'
ignoreFs='/mnt/key'
mountName() {
case "${1}" in
"/mnt/windows" ) echo "win" ;;
"/mnt/141.35.60.68_home_simulation" ) echo "smh" ;;
"/mnt/141.35.60.68_home_experiment" ) echo "exh" ;;
"/mnt/141.35.60.68_home_expshhg" ) echo "esh" ;;
"/mnt/141.35.60.68_home_erich" ) echo "seh" ;;
"/mnt/141.35.50.159_home" ) echo "nse" ;;
"/mnt/141.35.51.219_expshhg" ) echo "jes" ;;
"/mnt/141.35.60.68" ) echo "sim" ;;
"/mnt/192.168.0.12" ) echo "hom" ;;
"/mnt/usb/"* ) echo "${1#/mnt/usb/}" ;;
* ) echo "${1}" ;;
esac
}
|