15 lines
228 B
Bash
15 lines
228 B
Bash
|
#! /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
|
||
|
|