]> git.ipfire.org Git - people/arne_f/network.git/blame - hook-header
network: Remove support for blue zone.
[people/arne_f/network.git] / hook-header
CommitLineData
5b20e43a
MT
1#!/bin/sh
2
3. /etc/init/functions
4. /lib/network/functions
5
6INDENT=" "
7
8HOOK_PRIO=100
9
10# Parse the command line
11action=
12port=
13zone=
14
15while [ $# -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
37done
38