80-block-network 233 B

1234567891011
  1. #!/bin/sh
  2. set -e
  3. echo "Generating blocklist for all network devices"
  4. find /lib/modules/*/kernel/drivers/net \
  5. -name "*.ko" -printf "blacklist %f\n" | \
  6. sed 's/\.ko$//' | \
  7. sort -u > /etc/modprobe.d/all-net-blacklist.conf