[package] base-files: prevent possible sourcing of JFFS2 meta files when merging...
[openwrt.git] / package / base-files / files / lib / preinit / 10_check_for_mtd
1 #!/bin/sh
2
3 # Copyright (C) 2006-2010 OpenWrt.org
4 # Copyright (C) 2010 Vertical Communications
5
6 mount_no_mtd() {
7 mtd unlock rootfs
8 mount -o remount,rw /dev/root /
9 }
10
11 check_for_mtd() {
12 check_skip || {
13 grep -qs rootfs_data /proc/mtd || {
14 mount_no_mtd && pi_mount_skip_next=true
15 }
16 }
17 }
18
19 boot_hook_add preinit_mount_root check_for_mtd
20
This page took 0.047732 seconds and 5 git commands to generate.