summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/CustomMedia.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV/Draklive/CustomMedia.pm')
-rw-r--r--lib/MDV/Draklive/CustomMedia.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/CustomMedia.pm b/lib/MDV/Draklive/CustomMedia.pm
new file mode 100644
index 0000000..21750cd
--- /dev/null
+++ b/lib/MDV/Draklive/CustomMedia.pm
@@ -0,0 +1,14 @@
+package MDV::Draklive::CustomMedia;
+
+sub nfs_media {
+ my ($module, $client, $path) = @_;
+ (
+ fs => 'nfs',
+ modules => 'nfs',
+ extra_modules => [ $module ],
+ pre => "ifconfig eth0 $client up",
+ source => $path,
+ );
+}
+
+1;