2 # Copyright (C) 2010 OpenWrt.org
4 merge_overlay_hooks
() {
5 jffs2_not_mounted ||
[ ! -d /tmp
/overlay
/lib
/preinit
] ||
{
6 echo "- merge overlay components -"
8 mkdir
-p /tmp
/preinit-hook-merge
9 ln -sf /lib
/preinit
/* /tmp
/overlay
/lib
/preinit
/* /tmp
/preinit-hook-merge
/
11 boot_hook_splice_start
14 for pipart
in /tmp
/preinit-hook-merge
/*; do
18 boot_hook_splice_finish
20 rm -rf /tmp
/preinit-hook-merge
24 boot_hook_add preinit_mount_root merge_overlay_hooks