Do not overload mount-call - trying to reduce confusion
[openwrt/staging/dedeckeh.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 mount -o noatime,move /tmp/overlay /overlay 2>&-
9 fopivot /overlay /rom && pi_mount_skip_next=true
10 }
11 }
12
13 boot_hook_add preinit_mount_root rootfs_pivot
14