insert only once

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-08-14 14:02:40 +02:00
parent a0609de1ff
commit 6a7dfe8cad

View file

@ -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