add preinit modularization work by Daniel Dickinson (cshore)
[openwrt/staging/yousong.git] / package / base-files / files / lib / preinit / 70_pivot_jffs2_root
1 #!/bin/sh
2 # Copyright (C) 2006-2010 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
4
5 rootfs_pivot() {
6 check_skip || jffs2_not_mounted || {
7 echo "switching to jffs2"
8 fopivot /jffs /rom && pi_mount_skip_next=true
9 }
10 }
11
12 boot_hook_add preinit_mount_root rootfs_pivot
13