You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
518 B
24 lines
518 B
#!/bin/sh
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
merge_overlay_hooks() {
|
|
jffs2_not_mounted || [ ! -d /tmp/overlay/lib/preinit ] || {
|
|
echo "- merge overlay components -"
|
|
|
|
mkdir -p /tmp/preinit-hook-merge
|
|
ln -sf /lib/preinit/* /tmp/overlay/lib/preinit/[0-9][0-9]_* /tmp/preinit-hook-merge/
|
|
|
|
boot_hook_splice_start
|
|
|
|
local pipart
|
|
for pipart in /tmp/preinit-hook-merge/*; do
|
|
. $pipart
|
|
done
|
|
|
|
boot_hook_splice_finish
|
|
|
|
rm -rf /tmp/preinit-hook-merge
|
|
}
|
|
}
|
|
|
|
boot_hook_add preinit_mount_root merge_overlay_hooks
|
|
|