diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-10-29 00:57:05 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-10-29 00:57:05 +0000 |
commit | 14da6683acda76b094c886508c79dc78fbb5be11 (patch) | |
tree | 2dbf7745bdf706e28372300306a5168ac607bee8 /lib/MDV/Draklive/CustomMedia.pm | |
parent | d482ef7beb82ae4144dc3155a17fa7d689e394ba (diff) | |
download | draklive-14da6683acda76b094c886508c79dc78fbb5be11.tar draklive-14da6683acda76b094c886508c79dc78fbb5be11.tar.gz draklive-14da6683acda76b094c886508c79dc78fbb5be11.tar.bz2 draklive-14da6683acda76b094c886508c79dc78fbb5be11.tar.xz draklive-14da6683acda76b094c886508c79dc78fbb5be11.zip |
extract predefined and custom mounts/fs in MDV::Draklive::Mounts and MDV::Draklive::CustomMedia modules (breaks config files)
Diffstat (limited to 'lib/MDV/Draklive/CustomMedia.pm')
-rw-r--r-- | lib/MDV/Draklive/CustomMedia.pm | 14 |
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; |