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
26 # Copyright (C) 2010 OpenWrt.org
28 merge_overlay_hooks
() {
29 jffs2_not_mounted ||
[ ! -d /tmp
/overlay
/lib
/preinit
] ||
{
30 echo "- merge overlay components -"
32 mkdir
-p /tmp
/preinit-hook-merge
33 ln -sf /lib
/preinit
/* /tmp
/overlay
/lib
/preinit
/* /tmp
/preinit-hook-merge
/
35 boot_hook_splice_start
38 for pipart
in /tmp
/preinit-hook-merge
/*; do
42 boot_hook_splice_finish
44 rm -rf /tmp
/preinit-hook-merge
48 boot_hook_add preinit_mount_root merge_overlay_hooks