Annotation of /trunk/magellan-initscripts/rc/sysctl
Parent Directory | Revision Log
Revision 367 -
(hide annotations)
(download)
Fri Apr 14 13:56:49 2006 UTC (18 years, 5 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sysctl
File size: 589 byte(s)
Fri Apr 14 13:56:49 2006 UTC (18 years, 5 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sysctl
File size: 589 byte(s)
added sysctl
1 | niro | 367 | #!/bin/bash |
2 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/sysctl,v 1.1 2006-04-14 13:55:37 niro Exp $ | ||
3 | |||
4 | #%rlevels: 7:s | ||
5 | #%start: 90 | ||
6 | #%stop: | ||
7 | |||
8 | #deps | ||
9 | #%needs: | ||
10 | #%before: | ||
11 | #%after: | ||
12 | |||
13 | source /etc/sysconfig/rc | ||
14 | source $rc_functions | ||
15 | |||
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 |