Magellan Linux

Annotation of /trunk/initscripts/sysvinit/rc/sysctl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1251 - (hide annotations) (download)
Fri Mar 11 17:19:23 2011 UTC (13 years, 2 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sysctl
File size: 456 byte(s)
-use rc_print and rc_echo

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 niro 1251 rc_print "Setting kernel runtime parameters ..."
21 niro 367 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 niro 1251 rc_echo "Usage: $0 {start|status}"
35 niro 367 exit 1
36     ;;
37     esac