blob: cdfcc3264b303f212b0d5be925cd0ffb70f890e8 [file] [log] [blame]
#!/bin/bash
# In case IPv6 is compiled as a module.
[ -f /proc/net/if_inet6 ] || insmod $DIR/kernel/net-next/net/ipv6/ipv6.ko
# Minimal network setup.
ip link set lo up
ip link set lo mtu 16436
ip link set eth0 up
# Allow people to run ping.
echo "0 65536" > /proc/sys/net/ipv4/ping_group_range
# Read environment variables passed to the kernel to determine if script is
# running on builder and to find which test to run.
if [ "$net_test_mode" != "builder" ]; then
# Fall out to a shell once the test completes or if there's an error.
trap "exec /bin/bash" ERR EXIT
fi
echo -e "Running $net_test\n"
$net_test