diff options
| author | Roy Marples <roy@marples.name> | 2008-08-15 11:06:27 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-08-15 11:06:27 +0000 |
| commit | ee90dc2257a48b3b8bae93a218d3dcc1bee46aaf (patch) | |
| tree | 7950047e734cb2a02e151a440456989906c2a3ca /dhcpcd-run-hooks.in | |
| parent | 7bcaeef3a2cba652e43d4c3459240fb333875637 (diff) | |
| download | dhcpcd-ee90dc2257a48b3b8bae93a218d3dcc1bee46aaf.tar.xz | |
Don't enforce that keys are space separated
Diffstat (limited to 'dhcpcd-run-hooks.in')
| -rw-r--r-- | dhcpcd-run-hooks.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index 2bb84bab..66192942 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -44,12 +44,12 @@ key_get_value() shift if type sed >/dev/null 2>&1; then - sed -n "s/^${key} //p" $@ + sed -n "s/^${key}//p" $@ else for x; do while read line; do case "${line}" in - "${key} "*) echo "${line##${key} }";; + "${key}"*) echo "${line##${key}}";; esac done < "${x}" done |
