#!/usr/bin/ash # SPDX-License-Identifier: GPL-2.0-only run_hook() { local disk if disk="$(memdiskfind)"; then # We found a memdisk, set up phram modprobe phram phram="memdisk,$disk" # Load mtdblock, the memdisk will be /dev/mtdblock0 modprobe mtdblock fi } # vim: set ft=sh ts=4 sw=4 et: