X-Git-Url: http://gitweb.pimeys.fr/?p=scripts-20-100.git;a=blobdiff_plain;f=ftp%2Fbind_ftp.sh;fp=ftp%2Fbind_ftp.sh;h=0000000000000000000000000000000000000000;hp=ba30d36276af937d4bab07936655bc8ea980ad2e;hb=47c385eae3f86700179e7c4f9f41002468613a3c;hpb=4e33fca93b45649074417e438f9c186935f54b59 diff --git a/ftp/bind_ftp.sh b/ftp/bind_ftp.sh deleted file mode 100755 index ba30d36..0000000 --- a/ftp/bind_ftp.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -# Pour monter les dossiers FTP -# Parce que les symlinks, ça ne me suffisait plus. - -mountt(){ - # Crée $2, - # puis inde $1 sur $2, sauf s'il y a déjà quelque chose de monté sur $2 - mkdir -p "$2" - if mountpoint "$2" >/dev/null; then - return; - else - mount -o bind "$1" "$2" - fi; -} - -DIR=/home/ftp - -# Contenu de knebworth -DIRk=${DIR}/knebworth -mountt /media/Theta/Logiciels/ ${DIRk}/Logiciels/ -mountt /media/Theta/Musiques/ ${DIRk}/Musiques/ - -mountt /media/Theta/Nanars/ ${DIRk}/Videos/Nanars/ -mountt /media/Iota/Series ${DIRk}/Videos/Series -mountt /media/Theta/Concerts/ ${DIRk}/Videos/Concerts -mountt /media/Theta/Cineclub/ ${DIRk}/Videos/Cineclub -mountt /media/Theta/Animes/ ${DIRk}/Videos/Animes - -# Contenu ajouté par 20-100 -mountt /media/Alpha/Porn/ ${DIR}/Porn/ -mountt /media/Alpha/MP3/ ${DIR}/MP3/ -mountt /media/Alpha/Books/ ${DIR}/Books/ -mountt /media/Omega/Vidéos/ ${DIR}/Vidéos -mountt /media/Kappa/Films/ ${DIR}/Films/ -mountt /media/Theta/Jeux/ ${DIR}/Jeux/ - -export -f mountt -for seriesdir in /media/Omega/Séries/ /media/Kappa/Séries -do - find ${seriesdir} -mindepth 1 -maxdepth 1 \( -type d -or -type l \) \ --exec bash -c 's=$(basename "$0"); mountt "$0" "/home/ftp/Séries/${s}"' {} \; -done