http://bugzilla.openvz.org/show_bug.cgi?id=132 43a44 > MODULES_DISABLED=1 45,51c46,55 < PRELOAD_MODULES="af_packet" < MODULES="vzmon vzdquota vzdev" < MODULES_OTHER="vzcompat" < NET_MODULES="vznetdev vznet" < IPT_MODULES="ip_tables ${IPTABLES}" < if [ "${VZWDOG}" = "yes" ]; then < MODULES="${MODULES} vzwdog" --- > [ -z "${MODULES_DISABLED}" ] && MODULES_DISABLED=0 > if [ "${MODULES_DISABLED}" -eq "0" ]; then > PRELOAD_MODULES="af_packet" > MODULES="vzmon vzdquota vzdev" > MODULES_OTHER="vzcompat" > NET_MODULES="vznetdev vznet" > IPT_MODULES="ip_tables ${IPTABLES}" > if [ "${VZWDOG}" = "yes" ]; then > MODULES="${MODULES} vzwdog" > fi 141,143c145,149 < for mod in ${NET_MODULES}; do < modprobe ${mod} 2>/dev/null < done --- > if [ ! -z "${NET_MODULES}" ]; then > for mod in ${NET_MODULES}; do > modprobe ${mod} 2>/dev/null > done > fi 334,347c340,361 < load_modules "${IPT_MODULES}" < for MOD in $PRELOAD_MODULES; do < /sbin/modprobe -r $MOD >/dev/null 2>&1 < /sbin/modprobe $MOD >/dev/null 2>&1 < done < for MOD in $MODULES; do < /sbin/modprobe $MOD >/dev/null 2>&1 < RETVAL=$? < if [ $RETVAL -ne 0 ]; then < print_failure "Loading module ${MOD}" < return $RETVAL < fi < done < load_modules "${MODULES_OTHER}" --- > if [ ! -z "${IPT_MODULES}" ]; then > load_modules "${IPT_MODULES}" > fi > if [ ! -z "${PRELOAD_MODULES}" ]; then > for MOD in $PRELOAD_MODULES; do > /sbin/modprobe -r $MOD >/dev/null 2>&1 > /sbin/modprobe $MOD >/dev/null 2>&1 > done > fi > if [ ! -z "${MODULES}" ]; then > for MOD in $MODULES; do > /sbin/modprobe $MOD >/dev/null 2>&1 > RETVAL=$? > if [ $RETVAL -ne 0 ]; then > print_failure "Loading module ${MOD}" > return $RETVAL > fi > done > fi > if [ ! -z "${MODULES_OTHER}" ]; then > load_modules "${MODULES_OTHER}" > fi