Root/package/base-files/files/lib/preinit/20_check_jffs2_ready

1#!/bin/sh
2# Copyright (C) 2006-2010 OpenWrt.org
3# Copyright (C) 2010 Vertical Communications
4
5mount_no_jffs2() {
6    echo "jffs2 not ready yet; using ramdisk"
7    ramoverlay
8}
9
10check_for_jffs2() {
11    check_skip || {
12    jffs2_ready || {
13        mount_no_jffs2 && pi_mount_skip_next=true
14    }
15    }
16}
17
18boot_hook_add preinit_mount_root check_for_jffs2
19
20

Archive Download this file



interactive