1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/ash 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: