Root/
| 1 | #!/bin/sh |
| 2 | |
| 3 | # Copyright (C) 2006-2010 OpenWrt.org |
| 4 | # Copyright (C) 2010 Vertical Communications |
| 5 | |
| 6 | no_fo_copy_ramoverlay() { |
| 7 | # copy ramoverlay to jffs2, must be done after switching |
| 8 | # to the new rootfs to avoid creating opaque directories |
| 9 | echo -n "copying files ... " |
| 10 | cp -a /tmp/root/* / >/dev/null 2>&1 |
| 11 | sync |
| 12 | } |
| 13 | |
| 14 | boot_hook_add no_fo no_fo_ramoverlay |
| 15 |
