����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Restore capabilities:
# Skip when the whole NETFS_RESTORE_CAPABILITIES array is empty.
# For the 'test' one must have all array members as a single word i.e. "${name[*]}" because
# the test should succeed when there is any non-empty array member, not necessarily the first one:
test "${NETFS_RESTORE_CAPABILITIES[*]}" || return 0
# Be backward compatible:
is_false "$NETFS_RESTORE_CAPABILITIES" && return 0
# Try to find a capabilities file.
# Prefer the one in the recovery system ($VAR_DIR/recovery/capabilities) if exists
# over the one that may have been restored from the backup ($TARGET_FS_ROOT/$VAR_DIR/recovery/capabilities):
test -s $TARGET_FS_ROOT/$VAR_DIR/recovery/capabilities && capabilities_file="$TARGET_FS_ROOT/$VAR_DIR/recovery/capabilities"
test -s $VAR_DIR/recovery/capabilities && capabilities_file="$VAR_DIR/recovery/capabilities"
# Report when NETFS_RESTORE_CAPABILITIES is non-empty but there is no capabilities file:
if ! test "$capabilities_file" ; then
LogPrint "Cannot restore capabilities: No $VAR_DIR/recovery/capabilities or it is empty"
# Do not abort the whole 'rear recover' in this case:
return 0
fi
LogPrint "Restoring file capabilities (NETFS_RESTORE_CAPABILITIES)"
while IFS="=" read file cap ; do
file="${file% }"
cap="${cap# }"
setcap "${cap}" "${TARGET_FS_ROOT}/${file}" 1>/dev/null || LogPrint "Error while setting capabilities to '$file'"
done < <(cat $capabilities_file)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 100_mount_NETFS_path.sh | File | 140 B | 0644 |
|
| 200_remove_relative_rsync_option.sh | File | 845 B | 0644 |
|
| 380_prepare_multiple_isos.sh | File | 434 B | 0644 |
|
| 381_change_restore_defaults.sh | File | 433 B | 0644 |
|
| 390_create_partitions.sh | File | 3.91 KB | 0644 |
|
| 400_restore_clone.sh | File | 2.25 KB | 0644 |
|
| 500_selinux_autorelabel.sh | File | 1.05 KB | 0644 |
|
| 510_selinux_fixfiles_exclude_dirs.sh | File | 2.31 KB | 0644 |
|
| 510_set_capabilities.sh | File | 1.41 KB | 0644 |
|
| 980_umount_NETFS_dir.sh | File | 154 B | 0644 |
|