blob: 7a71652c44f8bd1fb9f2e5643e7baa5d5d76c369 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
if [ "$ACTION" = add ]; then
for CONF in /etc/sysctl.conf /etc/sysctl.d/*.conf; do
[ ! -f "$CONF" ] && continue;
sed -ne "/^[[:space:]]*net\..*\.$DEVICENAME\./p" "$CONF" | \
sysctl -e -p - | logger -t sysctl
done
fi
|