Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ if [[ "$1" == "init" ]]; then
modprobe nvram
systemctl start s6100-reboot-cause.service

# Disable Xilinx/pericom chipset
bios_version=$(dmidecode -s system-version | cut -d "-" -f2)

if [[ $bios_version -gt 5 ]] ; then
# Pericom is disabled in BIOS. Disable only Xilinx
echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove
else
# Disable pericom/xilinx
echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove
echo 1 > /sys/bus/pci/devices/0000:08:00.0/remove
fi

# Disable Watchdog Timer
if [[ -e /usr/local/bin/platform_watchdog_disable.sh ]]; then
/usr/local/bin/platform_watchdog_disable.sh
Expand Down