summaryrefslogtreecommitdiffstats
path: root/package/base-files/files.old/lib/preinit/70_pivot_jffs2_root
blob: b76f111ca3ab34d26e0fb8053f8ee324c339b9da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

rootfs_pivot() {
    check_skip || jffs2_not_mounted || {
	echo "switching to jffs2"
	mount -o noatime,move /tmp/overlay /overlay 2>&-
	fopivot /overlay /rom && pi_mount_skip_next=true
    }
}

boot_hook_add preinit_mount_root rootfs_pivot