mount-qnap-maison.sh 308 B

1234567891011
  1. #! /bin/bash
  2. if [ "$1" ]; then
  3. if [ "$1" = "multimedia" ]; then
  4. sudo mount 192.168.0.102:Multimedia /mnt/Qnap/multimedia
  5. elif [ "$1" = bachir ]; then
  6. sudo mount 192.168.0.102:bachir /mnt/Qnap/bachir
  7. fi
  8. else
  9. echo "please choose a directory to mount : multimedia or bachir"
  10. fi