blob: ae9efb8f564b0fa299686aa1faed4193a392ae2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
# Begin /etc/init.d/sysctl
### BEGIN INIT INFO
# Provides: sysctl
# Required-Start: udev
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: sysinit
# Default-Stop:
# Short-Description: Makes changes to the proc filesystem
# Description: Makes changes to the proc filesystem as defined in
# /etc/sysctl.conf. See 'man sysctl(8)'.
# X-LFS-Default-Start: S05
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS
### END INIT INFO
. /lib/lsb/init-functions
case "${1}" in
start)
if [ -f "/etc/sysctl.conf" ]; then
message="Setting kernel runtime parameters..."
sysctl -q -p
evaluate_retval standard
fi
;;
status)
sysctl -a
;;
*)
echo "Usage: ${0} {start|status}"
exit 1
;;
esac
# End /etc/init.d/sysctl
|