mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 06:07:47 +02:00
fix names
This commit is contained in:
@@ -428,11 +428,11 @@ if [ "$1" = "status" ]; then
|
||||
find_by_id_filename() {
|
||||
local device="$1"
|
||||
for dev in /dev/disk/by-id/*; do
|
||||
echo "# ${dev}"
|
||||
if [ "$(readlink -f "$dev")" = "/dev/$device" ]; then
|
||||
basename "$dev"
|
||||
fi
|
||||
done
|
||||
basename "$dev"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# STORAGE
|
||||
if [ ${#storageDevice} -gt 0 ]; then
|
||||
@@ -449,13 +449,6 @@ if [ "$1" = "status" ]; then
|
||||
dataDeviceName=$(find_by_id_filename "${dataDevice}")
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# Example usage:
|
||||
# find_by_id_filename "sdb"
|
||||
|
||||
|
||||
|
||||
#################
|
||||
# Define Scenario
|
||||
scenario="unknown"
|
||||
|
Reference in New Issue
Block a user