Annotation of /tags/init-0_6_0/rc/sysctl
Parent Directory | Revision Log
Revision 931 -
(hide annotations)
(download)
Thu Nov 5 12:57:14 2009 UTC (14 years, 10 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sysctl
File size: 466 byte(s)
Thu Nov 5 12:57:14 2009 UTC (14 years, 10 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sysctl
File size: 466 byte(s)
-fixed header
1 | niro | 367 | #!/bin/bash |
2 | niro | 931 | # $Id$ |
3 | niro | 367 | |
4 | #%rlevels: 7:s | ||
5 | #%start: 90 | ||
6 | #%stop: | ||
7 | |||
8 | #deps | ||
9 | #%needs: | ||
10 | #%before: | ||
11 | #%after: | ||
12 | |||
13 | niro | 781 | source /etc/conf.d/rc |
14 | source ${rc_functions} | ||
15 | niro | 367 | |
16 | case "$1" in | ||
17 | start) | ||
18 | if [ -f /etc/sysctl.conf ] | ||
19 | then | ||
20 | echo -e ${COLOREDSTAR}"Setting kernel runtime parameters ..." | ||
21 | sysctl -q -p | ||
22 | evaluate_retval | ||
23 | fi | ||
24 | |||
25 | update_svcstatus $1 | ||
26 | splash svc_started "$(basename $0)" 0 | ||
27 | ;; | ||
28 | |||
29 | status) | ||
30 | sysctl -a | ||
31 | ;; | ||
32 | |||
33 | *) | ||
34 | echo "Usage: $0 {start|status}" | ||
35 | exit 1 | ||
36 | ;; | ||
37 | esac |