10_check_for_mtd 361 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. # Copyright (C) 2010 Vertical Communications
  4. mount_no_mtd() {
  5. mtd unlock rootfs
  6. mount -o noatime,remount,rw /dev/root /
  7. }
  8. check_for_mtd() {
  9. check_skip || {
  10. grep -qs rootfs_data /proc/mtd || {
  11. mount_no_mtd && pi_mount_skip_next=true
  12. }
  13. }
  14. }
  15. boot_hook_add preinit_mount_root check_for_mtd