Browse Source

Update drive_number.sh

test
Dave Russell 1 year ago
committed by GitHub
parent
commit
23683d142f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      drive_number.sh

8
drive_number.sh

@ -1,9 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#----------------------------------------------------- #-------------------------------------------------------------
# Show Synology Drive number, model and serial number # Show dev id, Synology Drive number, model and serial number
# #
# Github: https://github.com/007revad/Synology_HDD_db # Github: https://github.com/007revad/Synology_HDD_db
#----------------------------------------------------- #-------------------------------------------------------------
# Check script is running as root # Check script is running as root
if [[ $( whoami ) != "root" ]]; then if [[ $( whoami ) != "root" ]]; then
@ -67,7 +67,7 @@ show_drive_model(){
fi fi
# Show drive model and serial # Show drive model and serial
echo -e "\n${Cyan}${drive_num}${Off}$model ${Yellow}$serial${Off}" echo -e "\n$drive ${Cyan}${drive_num}${Off}$model ${Yellow}$serial${Off}"
} }
# Add drives to drives array # Add drives to drives array

Loading…
Cancel
Save