10 lines
236 B
Plaintext
10 lines
236 B
Plaintext
|
#!/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
|