| Last change
                  on this file since 95 was
                  27,
                  checked in by jbarnold, 19 years ago | 
        
          | improved execsys init script | 
        | File size:
            645 bytes | 
      
      
        
  | Rev | Line |  | 
|---|
| [1] | 1 | #!/bin/sh | 
|---|
|  | 2 | # | 
|---|
|  | 3 | # execsys-binfmt: test1 | 
|---|
|  | 4 | # | 
|---|
| [27] | 5 | # chkconfig: 2345 2 98 | 
|---|
| [1] | 6 | # description: test2 | 
|---|
|  | 7 | # | 
|---|
|  | 8 |  | 
|---|
| [27] | 9 | stop () | 
|---|
|  | 10 | { | 
|---|
|  | 11 | echo "-1" > /proc/sys/fs/binfmt_misc/status | 
|---|
|  | 12 | umount /proc/sys/fs/binfmt_misc | 
|---|
|  | 13 | } | 
|---|
| [1] | 14 |  | 
|---|
| [27] | 15 | start () | 
|---|
|  | 16 | { | 
|---|
|  | 17 | mount -t binfmt_misc none /proc/sys/fs/binfmt_misc | 
|---|
| [1] | 18 | # START-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE! | 
|---|
|  | 19 | # This section is populated by the script upd-execsys | 
|---|
|  | 20 | # END-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE! | 
|---|
| [27] | 21 | } | 
|---|
|  | 22 |  | 
|---|
|  | 23 | case "$1" in | 
|---|
|  | 24 | start) | 
|---|
|  | 25 | stop 2>/dev/null || : | 
|---|
|  | 26 | start | 
|---|
|  | 27 | ;; | 
|---|
|  | 28 | stop) | 
|---|
|  | 29 | stop | 
|---|
|  | 30 | ;; | 
|---|
|  | 31 | restart) | 
|---|
|  | 32 | stop | 
|---|
|  | 33 | start | 
|---|
|  | 34 | ;; | 
|---|
|  | 35 | *) | 
|---|
|  | 36 | echo "Usage: $0 [start|stop|restart]" >&2 | 
|---|
|  | 37 | exit 2 | 
|---|
|  | 38 | ;; | 
|---|
|  | 39 | esac | 
|---|
|  | 40 |  | 
|---|
|  | 41 | exit $? | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.