diff options
author | Erich Eckner <git@eckner.net> | 2016-12-03 13:13:30 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-12-03 13:13:30 +0100 |
commit | a9076d7afc9b78003e175195f3d94b207687d9b1 (patch) | |
tree | bd4af09404be0d9fda2532d858814b8f7ba3e4d0 /mounted | |
parent | 0a038d8f0d7ce05c0cab6307178bb66c3eac4ea0 (diff) | |
download | mounted-0.0.tar.xz |
neue Version: 0.0v0.0
Diffstat (limited to 'mounted')
-rwxr-xr-x | mounted | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/mounted b/mounted deleted file mode 100755 index 10f9ebc..0000000 --- a/mounted +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -set -o pipefail - -mounts="$(mount | grep "\(^/dev/\)\|\(ncpfs\)\|\(fuse.sshfs\)" | grep -v '\s/mnt/key\s')" -lines=$(echo "${mounts}" | wc -l) - -for (( i=1; i<=${lines}; i++)) -do - mount="$(echo "${mounts}" | head -n$i | tail -n1)" - dev="$(echo "${mount}" | awk '{print $1}')" - mp="$(echo "${mount}" | awk '{print $3}')" - case "${mp}" in - "/mnt/windows" ) mpa="win" ;; - "/mnt/141.35.60.68_home_simulation" ) mpa="smh" ;; - "/mnt/141.35.60.68_home_experiment" ) mpa="exh" ;; - "/mnt/141.35.60.68_home_expshhg" ) mpa="esh" ;; - "/mnt/141.35.60.68_home_erich" ) mpa="seh" ;; - "/mnt/141.35.50.159_home" ) mpa="nse" ;; - "/mnt/141.35.51.219_expshhg" ) mpa="jes" ;; - "/mnt/141.35.60.68" ) mpa="sim" ;; - "/mnt/192.168.0.12" ) mpa="hom" ;; - "/mnt/usb/"* ) mpa="${mp#/mnt/usb/}" ;; - * ) mpa="${mp}" ;; - esac - if [ "${mp}" == "/" ] || df -a | grep -q "^${dev} " - then - echo " \${color}${mpa} \${fs_used ${mp}}/\${fs_size ${mp}} \${fs_bar 6 ${mp}}" - else - echo " ${dev} -> ${mp}" - fi -done |