2013-03-25 18:43:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-07-07 13:47:23 +00:00
|
|
|
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
|
2013-03-25 18:43:30 +00:00
|
|
|
fi
|