Root/package/base-files/files/lib/firstboot/40_copy_ramoverlay

1#!/bin/sh
2
3# Copyright (C) 2006-2010 OpenWrt.org
4# Copyright (C) 2010 Vertical Communications
5
6copy_ramoverlay() {
7    # try to avoid fs changing while copying
8    mount -o remount,ro none / 2>&-
9    # copy ramoverlay to jffs2
10    echo -n "copying files ... "
11    cp -a /tmp/root/* /rom/overlay 2>&-
12    echo "done"
13}
14
15boot_hook_add switch2jffs copy_ramoverlay
16

Archive Download this file



interactive