This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| modules_centos7 [2015/06/26 15:56] – created 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 10: | Line 11: | ||
| fi | fi | ||
| </ | </ | ||
| + | Example 2: | ||
| + | <code - / | ||
| + | #!/bin/sh | ||
| + | |||
| + | if [ ! -c /dev/sg0 ] ; then | ||
| + | exec / | ||
| + | fi | ||
| + | </ | ||
| + | {{tag> | ||