15 lines
228 B
Bash
Executable File
15 lines
228 B
Bash
Executable File
#! /bin/bash
|
|
|
|
#
|
|
# You can add more drives like so default_drives="drive1\|drive2"
|
|
default_drives="nvme0n1"
|
|
devices=$(lsblk -lnd | grep -v $default_drives )
|
|
if [ "$devices" = "" ];
|
|
then
|
|
echo -n
|
|
exit
|
|
else
|
|
echo ""
|
|
fi
|
|
|