00-sysctl 177 B

123456
  1. #!/bin/sh
  2. if [ -f /etc/sysctl.conf ] && [ "$ACTION" = add ]; then
  3. sed -ne "/^[[:space:]]*net\..*\.$DEVICENAME\./p" /etc/sysctl.conf | \
  4. sysctl -e -p - | logger -t sysctl
  5. fi