Advertisement
Guest User

Untitled

a guest
Feb 8th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.98 KB | None | 0 0
  1. #!/bin/sh
  2. set -e
  3.  
  4. ### BEGIN INIT INFO
  5. # Provides:           mount-network
  6. # Required-Start:     $syslog $remote_fs
  7. # Required-Stop:      $syslog $remote_fs
  8. # Should-Start:       cgroupfs-mount cgroup-lite
  9. # Should-Stop:        cgroupfs-mount cgroup-lite
  10. # Default-Start:      2 3 4 5
  11. # Default-Stop:       0 1 6
  12. # Short-Description:  monta pastas da rede
  13. # Description:
  14. # Monta todas as pastas da rede conforme necessario
  15. ### END INIT INFO
  16.  
  17. BASE=mount-network
  18.  
  19. case "$1" in
  20.         start)
  21.                 # monta ged documentos-htl
  22.                 mount //10.10.50.11/documentos-htl /media/documentos_online_htl -o username=haidar,uid=www-data,password=haidar,file_mode=0777,dir_mode=0777
  23.                 mount //10.10.50.11/ged_cliente /media/ged_cliente -o username=haidar,uid=www-data,password=haidar,file_mode=0777,dir_mode=0777
  24.                 ;;
  25.         stop)
  26.                 umount /media/documentos-htl
  27.                 umount /media/ged_cliente
  28.                 ;;
  29. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement