summaryrefslogtreecommitdiff
path: root/modules.d/80cms
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-06-28 10:31:18 +0200
committerHarald Hoyer <harald@redhat.com>2013-06-28 10:31:18 +0200
commit32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4 (patch)
tree77496ecfc6b5a08e5b61e7a892185e319d4f7a4d /modules.d/80cms
parent1d84d6940e5242220bc478647c56aae02c4263d3 (diff)
downloaddracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.tar.gz
dracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.tar.bz2
dracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.zip
use "rm --" to guard against filenames beginning with "-"
Diffstat (limited to 'modules.d/80cms')
-rwxr-xr-xmodules.d/80cms/cmssetup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/80cms/cmssetup.sh b/modules.d/80cms/cmssetup.sh
index 37fd84ee..16704c34 100755
--- a/modules.d/80cms/cmssetup.sh
+++ b/modules.d/80cms/cmssetup.sh
@@ -167,7 +167,7 @@ function dasd_settle_all() {
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/91-default-net.rules
+ rm -f -- /etc/udev/rules.d/91-default-net.rules
[[ -f /etc/udev/rules.d/90-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
udevadm control --reload