summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/80-block-network
blob: f6b4dd0b32f16411555118b99a6a411c03093866 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -e

echo "Generating blocklist for all network devices"

find /lib/modules/*/kernel/drivers/net \
     -name "*.ko" -printf "blacklist %f\n" | \
  sed 's/\.ko$//' | \
  sort -u > /etc/modprobe.d/all-net-blacklist.conf