add preinit modularization work by Daniel Dickinson (cshore)
[openwrt.git] / 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
6 copy_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/jffs 2>&-
12 echo "done"
13 }
14
15 boot_hook_add switch2jffs copy_ramoverlay
This page took 0.043746 seconds and 5 git commands to generate.