summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/80-block-network
blob: 1d375b31e8ff1529e51a0546a7f1551784ecd1fd (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 "install %f /bin/true\n" | \
  sed 's/\.ko / /' | \
  sort -u > /etc/modprobe.d/all-net-blacklist.conf