| Gunnar Mills | e822190 | 2017-02-03 15:59:06 -0600 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |||||
| 3 | help=$'Generate SquashFS image Script | ||||
| 4 | |||||
| 5 | Generates a SquashFS image from the PNOR image | ||||
| 6 | |||||
| 7 | usage: generate-squashfs [OPTION] | ||||
| 8 | |||||
| 9 | Options: | ||||
| 10 | -h, --help Display this help text and exit. | ||||
| 11 | ' | ||||
| 12 | |||||
| 13 | while [[ $# -gt 0 ]]; do | ||||
| 14 | key="$1" | ||||
| 15 | case $key in | ||||
| 16 | -h|--help) | ||||
| 17 | echo "$help" | ||||
| 18 | exit | ||||
| 19 | ;; | ||||
| 20 | *) | ||||
| 21 | echo "Unknown option $1. Display available options with -h or --help" | ||||
| 22 | exit | ||||
| 23 | ;; | ||||
| 24 | esac | ||||
| 25 | done | ||||