mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
debug
This commit is contained in:
@@ -426,8 +426,9 @@ if [ "$1" = "status" ]; then
|
||||
|
||||
# use: find_by_id_filename [DEVICENAME]
|
||||
find_by_id_filename() {
|
||||
local device="$1" # e.g. "sdb"
|
||||
local device="$1"
|
||||
for dev in /dev/disk/by-id/*; do
|
||||
echo "# ${dev}"
|
||||
if [ "$(readlink -f "$dev")" = "/dev/$device" ]; then
|
||||
basename "$dev"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user