#!/bin/sh do_socfpga_detect() { . /lib/socfpga.sh socfpga_board_detect } boot_hook_add preinit_main do_socfpga_detect