40_no_fo_copy_ramoverlay 365 B

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