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