20_check_jffs2_ready 344 B

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