diff options
author | Daniel Dickinson <crazycshore@gmail.com> | 2010-09-23 14:03:22 +0000 |
---|---|---|
committer | Daniel Dickinson <crazycshore@gmail.com> | 2010-09-23 14:03:22 +0000 |
commit | 7fe34123d63d2265258e107a5cfc6a25edcb5531 (patch) | |
tree | 4e62f41210c60985cf639a4c4409507a88f4e334 /package/base-files/files | |
parent | 18b473ca9b3a1d050285af6c5d1640fafc5e0ecd (diff) | |
download | mtk-20170518-7fe34123d63d2265258e107a5cfc6a25edcb5531.zip mtk-20170518-7fe34123d63d2265258e107a5cfc6a25edcb5531.tar.gz mtk-20170518-7fe34123d63d2265258e107a5cfc6a25edcb5531.tar.bz2 |
Missed file committing previous change 23110
SVN-Revision: 23111
Diffstat (limited to 'package/base-files/files')
-rw-r--r-- | package/base-files/files/lib/preinit/41_merge_overlay_hooks | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/package/base-files/files/lib/preinit/41_merge_overlay_hooks b/package/base-files/files/lib/preinit/41_merge_overlay_hooks new file mode 100644 index 0000000..df39db1 --- /dev/null +++ b/package/base-files/files/lib/preinit/41_merge_overlay_hooks @@ -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 |