#!/usr/bin/env bash

echo "Initiating files.privex.io/pxe/autorun/autorun0 ..."

{
    echo -e "\n --- IP Config --- \n"
    ip addr
    
    echo -e "\n --- IPv4 Routing Table --- \n"
    ip -4 route show table all

    echo -e "\n --- IPv6 Routing Table --- \n"
    ip -6 route show table all
    
    echo -e "\n --- Disk Layout (fdisk) --- \n"
    fdisk -l

    echo -e "\n --- LVM Physical Volumes (pvs) --- \n"
    pvs

    echo -e "\n --- LVM Volume Groups (vgs) --- \n"
    vgs

    echo -e "\n --- LVM Logical Volumes (lvs) --- \n"
    lvs

} | tee -a /root/autorun.log


echo "Finished running files.privex.io/pxe/autorun/autorun0 ..."
sync
exit 0


