allow targets to define a default subtarget when using automatic subtarget detection...
[openwrt.git] / package / base-files / files / lib / preinit / 41_merge_overlay_hooks
1 #!/bin/sh
2 # Copyright (C) 2010 OpenWrt.org
3
4 merge_overlay_hooks() {
5 jffs2_not_mounted || [ ! -d /tmp/overlay/lib/preinit ] || {
6 echo "- merge overlay components -"
7
8 mkdir -p /tmp/preinit-hook-merge
9 ln -sf /lib/preinit/* /tmp/overlay/lib/preinit/[0-9][0-9]_* /tmp/preinit-hook-merge/
10
11 boot_hook_splice_start
12
13 local pipart
14 for pipart in /tmp/preinit-hook-merge/*; do
15 . $pipart
16 done
17
18 boot_hook_splice_finish
19
20 rm -rf /tmp/preinit-hook-merge
21 }
22 }
23
24 boot_hook_add preinit_mount_root merge_overlay_hooks
This page took 0.040124 seconds and 5 git commands to generate.