diff options
| author | Roy Marples <roy@marples.name> | 2008-05-20 16:05:15 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-05-20 16:05:15 +0000 |
| commit | 37156a6b53681b9ab70482b15358e0a86a08c74d (patch) | |
| tree | f4adf7b5714d7f1057b16e11507c59dbf49997ce /dhcpcd.sh.in | |
| parent | 5f81be76fc605333ef92ecde09b093b1ebe5bd4d (diff) | |
| download | dhcpcd-37156a6b53681b9ab70482b15358e0a86a08c74d.tar.xz | |
Add a -C, --nohook option to skip the running of hook scripts. Makes it easier to just not do any configuring of resolv.conf
Diffstat (limited to 'dhcpcd.sh.in')
| -rw-r--r-- | dhcpcd.sh.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dhcpcd.sh.in b/dhcpcd.sh.in index 10ae50cd..7fd8b091 100644 --- a/dhcpcd.sh.in +++ b/dhcpcd.sh.in @@ -25,6 +25,13 @@ for hook in \ @SYSCONFDIR@/dhcpcd.hook \ @HOOKDIR@/* do + for skip in ${skip_hooks}; do + case "${hook}" in + "${skip}") continue 2;; + */[0-9][0-9]"-${skip}") continue 2;; + */[0-9][0-9]"-${skip}.sh") continue 2;; + esac + done if [ -f "${hook}" ]; then . "${hook}" fi |
