20_has_mini_fo 262 B

12345678910111213
  1. #!/bin/sh
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. # Copyright (C) 2010 Vertical Communications
  4. check_for_overlay() {
  5. if ! grep -qE '(mini_fo|overlay)' /proc/filesystems; then
  6. boot_run_hook no_fo
  7. exit 1
  8. fi
  9. }
  10. boot_hook_add switch2jffs check_for_overlay