Browse Source
Update syno_hdd_db.sh
- Prevent running with "sh scriptname.sh".
pull/67/head
Dave Russell
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
1 deletions
-
syno_hdd_db.sh
|
|
|
@ -30,6 +30,8 @@ |
|
|
|
# It's also parsed and checked and probably in some cases it could be more critical to patch that one instead. |
|
|
|
|
|
|
|
# DONE |
|
|
|
# Prevent running with "sh scriptname.sh". |
|
|
|
# |
|
|
|
# Fixed DSM 6 bug where the drives were being duplicated in the .db files each time the script was run. |
|
|
|
# |
|
|
|
# Fixed DSM 6 bug where the .db files were being duplicated as .dbr each time the db files were edited. |
|
|
|
@ -142,10 +144,16 @@ |
|
|
|
# Optionally disable "support_disk_compatibility". |
|
|
|
|
|
|
|
|
|
|
|
scriptver="v2.2.43" |
|
|
|
scriptver="v2.2.44" |
|
|
|
script=Synology_HDD_db |
|
|
|
repo="007revad/Synology_HDD_db" |
|
|
|
|
|
|
|
# Check BASH variable is is non-empty and posix mode is off, else abort with error. |
|
|
|
[ "$BASH" ] && ! shopt -qo posix || { |
|
|
|
printf >&2 "This is a bash script, don't run it with sh\n" |
|
|
|
exit 1 |
|
|
|
} |
|
|
|
|
|
|
|
#echo -e "bash version: $(bash --version | head -1 | cut -d' ' -f4)\n" # debug |
|
|
|
|
|
|
|
# Shell Colors |
|
|
|
|