diff options
| author | Roy Marples <roy@marples.name> | 2018-01-20 20:37:48 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2018-01-20 20:37:48 +0000 |
| commit | 403c2118b547bc4738ad47b4d6639cb2d371ca46 (patch) | |
| tree | 44d8204cd4a9d4e30e2c9cf5faf8990fb894986d /hooks | |
| parent | 107ec8f0d1e664256a3bca3bbce52fdb50845f2f (diff) | |
| download | dhcpcd-403c2118b547bc4738ad47b4d6639cb2d371ca46.tar.xz | |
dhcpcd-run-hooks: set vars to blank
Diffstat (limited to 'hooks')
| -rw-r--r-- | hooks/dhcpcd-run-hooks.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hooks/dhcpcd-run-hooks.in b/hooks/dhcpcd-run-hooks.in index 440e25c9..6e506dab 100644 --- a/hooks/dhcpcd-run-hooks.in +++ b/hooks/dhcpcd-run-hooks.in @@ -18,6 +18,7 @@ _detected_init=false # Ensure that all arguments are unique uniqify() { + result= for i do case " $result " in *" $i "*);; @@ -33,6 +34,7 @@ uniqify() # Otherwise we just use what we have. list_interfaces() { + ifaces= for i in $interface_order; do for x in "$1"/$i.*; do [ -f "$x" ] && ifaces="$ifaces${ifaces:+ }${x##*/}" |
