项目作者: bigno

项目描述 :
Bash script for automatic mount of a local USB disk.
高级语言: Shell
项目地址: git://github.com/bigno/localdiskmount.git
创建时间: 2018-02-05T18:49:02Z
项目社区:https://github.com/bigno/localdiskmount

开源协议:Apache License 2.0

下载


localdiskmount

Bash script for automatic mount of a local disk (USB).

Main features

  • Check if the disk is already mounted
  • Check if the path where the mount will be mounted exists

Configurations

  • DRIVE_TO_MOUNT: This variable is an array that must contains the path of the “local drive(s)” that we desire to mount. For example, ‘/dev/sda1’.
  • PATH_WHERE_MOUNT: This variable is an array that must contains the “absolute mount path(s)” that we desire to mount.
  • MOUNT_TYPE: This variable is an array that must define the “mount type” that will be used in the -t option of mount command.

Suggested use

The script can be used via crontab.

Tested environment

The script has been successfully tested on the following environments:

  • Raspberry Pi 3 with Raspbian Stretch distro.