| Last change
 on this file since 7254832 was             7df280d, checked in by Joe Ciccone <jciccone@…>, 18 years ago | 
        
          | 
Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            769 bytes | 
      
      
| Line |  | 
|---|
| 1 | #!/bin/bash | 
|---|
| 2 | ######################################################################## | 
|---|
| 3 | # Begin $rc_base/init.d/sysctl | 
|---|
| 4 | # | 
|---|
| 5 | # Description : File uses /etc/sysctl.conf to set kernel runtime | 
|---|
| 6 | #               parameters | 
|---|
| 7 | # | 
|---|
| 8 | # Authors     : Nathan Coulson (nathan@linuxfromscratch.org) | 
|---|
| 9 | #               Matthew Burgress (matthew@linuxfromscratch.org) | 
|---|
| 10 | # | 
|---|
| 11 | # Version     : 00.00 | 
|---|
| 12 | # | 
|---|
| 13 | # Notes       : | 
|---|
| 14 | # | 
|---|
| 15 | ######################################################################## | 
|---|
| 16 |  | 
|---|
| 17 | . /etc/sysconfig/rc | 
|---|
| 18 | . ${rc_functions} | 
|---|
| 19 |  | 
|---|
| 20 | case "${1}" in | 
|---|
| 21 | start) | 
|---|
| 22 | if [ -f "/etc/sysctl.conf" ]; then | 
|---|
| 23 | boot_mesg "Setting kernel runtime parameters..." | 
|---|
| 24 | sysctl -q -p | 
|---|
| 25 | evaluate_retval | 
|---|
| 26 | fi | 
|---|
| 27 | ;; | 
|---|
| 28 |  | 
|---|
| 29 | status) | 
|---|
| 30 | sysctl -a | 
|---|
| 31 | ;; | 
|---|
| 32 |  | 
|---|
| 33 | *) | 
|---|
| 34 | echo "Usage: ${0} {start|status}" | 
|---|
| 35 | exit 1 | 
|---|
| 36 | ;; | 
|---|
| 37 | esac | 
|---|
| 38 |  | 
|---|
| 39 | # End $rc_base/init.d/sysctl | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.