mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Add OS-specific alternative notes
This commit is contained in:
parent
0d05d71a0f
commit
f02e0d359f
|
@ -4,10 +4,15 @@
|
||||||
# If the device is not mounted, it will be mounted.
|
# If the device is not mounted, it will be mounted.
|
||||||
# If the device is mounted, it will be unmounted and powered down.
|
# If the device is mounted, it will be unmounted and powered down.
|
||||||
#
|
#
|
||||||
|
# Note: The script uses Linux-specific lsblk to list block devices. Alternatives:
|
||||||
|
# macOS: "diskutil list"
|
||||||
|
# BSD: "geom disk list"
|
||||||
|
#
|
||||||
# Shell: POSIX compliant
|
# Shell: POSIX compliant
|
||||||
# Author: Arun Prakash Jana
|
# Author: Arun Prakash Jana
|
||||||
|
|
||||||
lsblk
|
lsblk
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Make sure you aren't still in the mounted device."
|
echo "Make sure you aren't still in the mounted device."
|
||||||
echo -n "device (e.g. sdc2): "
|
echo -n "device (e.g. sdc2): "
|
||||||
|
|
Loading…
Reference in a new issue