Magellan Linux

Contents of /trunk/initscripts/sysvinit/rc/sysctl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1356 - (show annotations) (download)
Sat Jun 4 21:05:01 2011 UTC (12 years, 11 months ago) by niro
File size: 456 byte(s)
-copied
1 #!/bin/bash
2 # $Id$
3
4 #%rlevels: 7:s
5 #%start: 90
6 #%stop:
7
8 #deps
9 #%needs:
10 #%before:
11 #%after:
12
13 source /etc/conf.d/rc
14 source ${rc_functions}
15
16 case "$1" in
17 start)
18 if [ -f /etc/sysctl.conf ]
19 then
20 rc_print "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 rc_echo "Usage: $0 {start|status}"
35 exit 1
36 ;;
37 esac