add preinit modularization work by Daniel Dickinson (cshore)
[openwrt/svn-archive/archive.git] / package / base-files / files / lib / firstboot / 99_10_with_fo_cleanup
1 #!/bin/sh
2
3 # Copyright (C) 2006-2010 OpenWrt.org
4 # Copyright (C) 2010 Vertical Communications
5
6 with_fo_cleanup() {
7 # try to get rid of /tmp/root
8 # this will almost always fail
9 mount /tmp/root 2>&-
10 exit 0
11 }
12
13 boot_hook_add switch2jffs with_fo_cleanup