Masato Taruishi
taru****@users*****
2004年 10月 26日 (火) 01:53:38 JST
=================================================================== RCS file: plugin/ultramonkey/update-ultramonkey,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- plugin/ultramonkey/update-ultramonkey 2004/10/25 16:43:24 1.6 +++ plugin/ultramonkey/update-ultramonkey 2004/10/25 16:53:38 1.7 @@ -108,21 +108,22 @@ add_end_vaconf /etc/network/interfaces $tmp "$id" # ipvs modules + $ipvs_modules="ip_vs_rr ipt_MASQUERADE ipt_multiport iptable_nat iptable_filter ip_conntrack" add_startmark "##" "$id" > $tmp - cat >> $tmp <<EOF -ip_vs_rr -ipt_MASQUERADE -ipt_multiport -iptable_nat -iptable_filter -ip_conntrack -EOF + for m in $ipvs_modules + do + echo "$m" >> $tmp + if test -x "/sbin/modprobe"; then + /sbin/modprobe $m || true + fi + done add_endmark "##" "$id" >> $tmp add_end_vaconf /etc/modules $tmp $id if test "`ultramonkeynodesnum`" -le "1"; then /sbin/ifup $ULTRAMONKEYDEVICE fi + } remove() {