1
0

00-sysctl 236 B

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