summaryrefslogtreecommitdiffstats
path: root/hooks/memdisk
blob: 62790b4204435f64f7efc9fc7d7eedb5d07ed900 (plain)
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: