This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| modules_centos7 [2015/06/26 15:57] – herwarth | modules_centos7 [2015/06/26 15:58] (current) – herwarth | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| * Make it executable | * Make it executable | ||
| + | Example 1: | ||
| <code - / | <code - / | ||
| #!/bin/sh | #!/bin/sh | ||
| Line 8: | Line 9: | ||
| if [ ! -c /dev/ipmi0 ] ; then | if [ ! -c /dev/ipmi0 ] ; then | ||
| exec / | exec / | ||
| + | fi | ||
| + | </ | ||
| + | Example 2: | ||
| + | <code - / | ||
| + | #!/bin/sh | ||
| + | |||
| + | if [ ! -c /dev/sg0 ] ; then | ||
| + | exec / | ||
| fi | fi | ||
| </ | </ | ||
| {{tag> | {{tag> | ||