aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs
blob: 7eb8bf7958a21462910e4f28cc855b3cc9b7fcc1 (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 none /proc/xen -t xenfs
	}
}

boot_hook_add preinit_mount_root do_mount_xenfs