summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib/firstboot/40_no_fo_copy_ramoverlay
blob: ced7c1b668ace2ca61eb64b09b9457162704e343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

no_fo_copy_ramoverlay() {
    # copy ramoverlay to jffs2, must be done after switching
    # to the new rootfs to avoid creating opaque directories
    echo -n "copying files ... "
    cp -a /tmp/root/* / >/dev/null 2>&1
    sync
}

boot_hook_add no_fo no_fo_ramoverlay