Commit faa5506b authored by Marcel Haerry's avatar Marcel Haerry
Browse files

fixed matching

parent 0a58683c
......@@ -16,12 +16,13 @@ define modprobe::kern_module(
present: {
exec{"insert_module_${name}":
command => "/bin/echo '/sbin/modprobe ${name}' >> '${modulesfile}' ",
unless => "/bin/grep -qFx '${name}' '${modulesfile}'"
unless => "/bin/grep -qFx '/sbin/modprobe ${name}' '${modulesfile}'"
}
case $operatingsystem {
debian,ubuntu: {
Exec["insert_module_${name}"]{
command => "/bin/echo '${name}' >> '${modulesfile}'",
unless => "/bin/grep -qFx '${name}' '${modulesfile}'"
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment