mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
Missed file committing previous change 23110
SVN-Revision: 23111
This commit is contained in:
parent
18b473ca9b
commit
7fe34123d6
48
package/base-files/files/lib/preinit/41_merge_overlay_hooks
Normal file
48
package/base-files/files/lib/preinit/41_merge_overlay_hooks
Normal file
@ -0,0 +1,48 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user