summaryrefslogtreecommitdiffstats
path: root/hooks/memdisk
blob: 2c3642eb472075d88b81bee4b04a3570ed99636e (plain)
1
2
3
4
5
6
7
8
9
10
11
# vim:set ft=sh:
run_hook ()
{
    MEMDISK=$(/usr/bin/memdiskfind)
    if [ $? -eq 0 ]; then
        # We found a memdisk, set up phram
        /sbin/modprobe phram phram=memdisk,${MEMDISK}
        # Load mtdblock, the memdisk will be /dev/mtdblock0
        /sbin/modprobe mtdblock
    fi
}