mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 18:46:15 +02:00
5509505bae
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23111 3c298f89-4303-0410-b956-a3cf2f4a3e73
49 lines
1014 B
Bash
49 lines
1014 B
Bash
#!/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/* /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
|
|
#!/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/* /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
|