]>
Commit | Line | Data |
---|---|---|
5b20e43a MT |
1 | #!/bin/sh |
2 | ||
3 | . /etc/init/functions | |
4 | . /lib/network/functions | |
5 | ||
6 | INDENT=" " | |
7 | ||
8 | HOOK_PRIO=100 | |
9 | ||
10 | # Parse the command line | |
11 | action= | |
12 | port= | |
13 | zone= | |
14 | ||
15 | while [ $# -gt 0 ]; do | |
16 | case "${1}" in | |
17 | --zone=*) | |
18 | zone=${1#--zone=} | |
19 | ;; | |
20 | --config=*) | |
21 | . ${1#--config=} | |
22 | ;; | |
23 | --port=*) | |
24 | port=${1#--port=} | |
25 | ;; | |
26 | -*) | |
27 | log_failure_msg "Unrecognized option: ${1}" | |
28 | exit ${EXIT_ERROR} | |
29 | ;; | |
30 | *) | |
31 | action=${1} | |
32 | shift | |
33 | break | |
34 | ;; | |
35 | esac | |
36 | shift | |
37 | done | |
38 |