summaryrefslogtreecommitdiff
path: root/modules.d/80cms
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-06-12 14:40:43 +0200
committerHarald Hoyer <harald@redhat.com>2012-06-15 11:56:13 +0200
commit8fab6e0463e0b0c70327c2733911098aa56137a7 (patch)
treebdc0412f857f278154541cf528e7446e05ccf4c8 /modules.d/80cms
parentc9aa3cc950ebec597e51cbc0899777c2a99ca276 (diff)
downloaddracut-8fab6e0463e0b0c70327c2733911098aa56137a7.tar.gz
dracut-8fab6e0463e0b0c70327c2733911098aa56137a7.tar.bz2
dracut-8fab6e0463e0b0c70327c2733911098aa56137a7.zip
resolve conflict between cms network rules and default rules
Diffstat (limited to 'modules.d/80cms')
-rwxr-xr-xmodules.d/80cms/cmssetup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/80cms/cmssetup.sh b/modules.d/80cms/cmssetup.sh
index 41c853cb..2208803a 100755
--- a/modules.d/80cms/cmssetup.sh
+++ b/modules.d/80cms/cmssetup.sh
@@ -166,6 +166,8 @@ processcmsfile()
fi
printf 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="%s", KERNELS=="%s", ENV{INTERFACE}=="?*", RUN+="/sbin/initqueue --onetime --unique --name cmsifup-$env{INTERFACE} /sbin/cmsifup $env{INTERFACE}"\n' "$driver" "$devbusid" > /etc/udev/rules.d/99-cms.rules
+ # remove the default net rules
+ rm -f /etc/udev/rules.d/61-default-net.rules
[[ -f /etc/udev/rules.d/60-net.rules ]] \
|| printf 'SUBSYSTEM=="net", ACTION=="online", RUN+="/sbin/initqueue --onetime --env netif=$env{INTERFACE} source_hook initqueue/online"\n' >> /etc/udev/rules.d/99-cms.rules