summaryrefslogtreecommitdiffstats
path: root/target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs
blob: 7b0760516e3482728eccc90a7efadb62939b11db (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Copyright (C) 2010 OpenWrt.org

do_mount_xenfs() {
	[ -f /etc/modules.d/??-xenfs ] && {
		insmod $(cat /etc/modules.d/??-xenfs)
		mount -o noatime none /proc/xen -t xenfs
	}
}

boot_hook_add preinit_mount_root do_mount_xenfs