diff --git a/btrfs-auto-snapshot b/btrfs-auto-snapshot index a7876a9..d791d17 100755 --- a/btrfs-auto-snapshot +++ b/btrfs-auto-snapshot @@ -24,8 +24,9 @@ set -euo pipefail #set -o functrace #set -o xtrace -# Define our version -version=2.0.3 +# Define our version. Distributions may replace it with: +# sed -i 's/^\(BTRFS_AUTO_SNAPSHOT_VERSION\)=.*/\1=/' +BTRFS_AUTO_SNAPSHOT_VERSION=${BTRFS_AUTO_SNAPSHOT_VERSION:-unknown} # Define various error codes ERR_SUCCESS=0 @@ -69,7 +70,7 @@ check_sys_reqs() usage() { - echo "$0 $version" + echo "$0 $BTRFS_AUTO_SNAPSHOT_VERSION" echo echo "Usage: $0 [options] [-l label] <'//' | name [name...]> -d, --debug Print debugging messages