1
0

sysctl 767 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin $rc_base/init.d/sysctl
  4. #
  5. # Description : File uses /etc/sysctl.conf to set kernel runtime
  6. # parameters
  7. #
  8. # Authors : Nathan Coulson (nathan@linuxfromscratch.org)
  9. # Matthew Burgress (matthew@linuxfromscratch.org)
  10. #
  11. # Version : 00.00
  12. #
  13. # Notes :
  14. #
  15. ########################################################################
  16. . /etc/sysconfig/rc
  17. . ${rc_functions}
  18. case "${1}" in
  19. start)
  20. if [ -f "/etc/sysctl.conf" ]; then
  21. boot_mesg "Setting kernel runtime parameters..."
  22. sysctl -q -p
  23. evaluate_retval
  24. fi
  25. ;;
  26. status)
  27. sysctl -a
  28. ;;
  29. *)
  30. echo "Usage: ${0} {start|status}"
  31. exit 1
  32. ;;
  33. esac
  34. # End $rc_base/init.d/sysctl