mount_root: prepare base-files
[openwrt.git] / package / base-files / files.old / lib / firstboot / 30_reset_copy_rom
1 #!/bin/sh
2
3 # Copyright (C) 2006-2010 OpenWrt.org
4 # Copyright (C) 2010 Vertical Communications
5
6 reset_copy_rom() {
7     [ "$reset_has_fo" != "true" ] && {
8         dupe $jffs $rom
9         exit 0
10     } 
11 }
12
13 boot_hook_add jffs2reset reset_copy_rom