Commit 6a7dfe8c authored by Nico Schottelius's avatar Nico Schottelius

insert only once

Signed-off-by: default avatarNico Schottelius <nico@ikn.schottelius.org>
parent a0609de1
......@@ -20,7 +20,11 @@
# Idea based on data from D-INFK ISG (www.isg.inf.ethz.ch)
#
cat << eof >> /etc/modprobe.d/aliases
string="# workaround for CVE-2009-2692"
file="/etc/modprobe.d/aliases"
grep "^$string" "$file" >/dev/null || cat << eof >> "$file"
$string
alias net-pf-10 off
alias ipv6 off
alias ib_ipoib off
......
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