2013-03-25 18:43:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-07-07 13:47:23 +00:00
|
|
|
if [ "$ACTION" = add ]; then
|
2018-04-12 15:33:51 +00:00
|
|
|
for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
|
2015-07-07 13:47:23 +00:00
|
|
|
[ ! -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
|