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

rootfs_pivot() {
    check_skip || jffs2_not_mounted || {
	echo "switching to jffs2"
	fopivot /jffs /rom && pi_mount_skip_next=true
    }
}

boot_hook_add preinit_mount_root rootfs_pivot