2010-01-25 17:11:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
|
|
# Copyright (C) 2010 Vertical Communications
|
|
|
|
|
2011-03-17 19:09:39 +00:00
|
|
|
check_for_overlay() {
|
|
|
|
if ! grep -qE '(mini_fo|overlay)' /proc/filesystems; then
|
2010-01-25 17:11:17 +00:00
|
|
|
boot_run_hook no_fo
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2011-03-17 19:09:39 +00:00
|
|
|
boot_hook_add switch2jffs check_for_overlay
|