mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 08:07:24 +04:00
duperemove is a simple tool for finding duplicated extents and submitting them for deduplication. It will de-dupe results on btrfs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Keith T. Garner <kgarner@kgarner.com>
18 lines
440 B
Bash
Executable File
18 lines
440 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shellcheck shell=busybox
|
|
|
|
case "$PKG_NAME" in
|
|
duperemove)
|
|
# btrfs-extent-same has no --version/--help, so it cannot use the
|
|
# generic per-executable version check; override it here and
|
|
# verify the two binaries that do report a version.
|
|
duperemove --version 2>&1 | grep -F "$PKG_VERSION" || exit 1
|
|
hashstats --version 2>&1 | grep -F "$PKG_VERSION" || exit 1
|
|
;;
|
|
*)
|
|
echo "Untested package: $PKG_NAME" >&2
|
|
exit 1
|
|
;;
|
|
esac
|