-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdmount
More file actions
executable file
·26 lines (25 loc) · 1.04 KB
/
dmount
File metadata and controls
executable file
·26 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/bash
#
# ############################################################################
# Project: scripts (none)
# File...: dmount
# Created: Wednesday, 2021/01/27 - 06:46:30
# Author.: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Sunday, 2023/09/03 - 00:34:49
# Modified By..: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 1.0.4.50
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# > dmenu script to mount disks on the system.
# ############################################################################
# HISTORY:
#
disk=$(mdisk --list u | \
dmenu -p "Qual disco vc quer montar?" | \
awk '{print $1}')
if [ -n "$disk" ]; then
msg=$(udisksctl unmount -b ${disk})
notify-send "Disk ${disk} foi montado em ${msg}"
fi