insert only once
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
a0609de1ff
commit
6a7dfe8cad
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue