diff options
| author | Moritz Warning <moritzwarning@web.de> | 2018-05-02 16:49:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-02 16:49:32 +0200 |
| commit | 069da036cb4d106f25f6d5a6fba7a784c297512f (patch) | |
| tree | 3dad3fe55ce5689e2d28f0818c91695a4335365a | |
| parent | 00ae77674fba37600eda6aeb46ff76518474d442 (diff) | |
| parent | 135bc605b4cf91d40ac97f1129a6a5a950f3ff72 (diff) | |
Merge pull request #354 from adrianschmutzler/fe80master
alfred: Support interface IDs with more than two digits
| -rwxr-xr-x | alfred/files/alfred.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alfred/files/alfred.init b/alfred/files/alfred.init index 4c9a9e1..8293436 100755 --- a/alfred/files/alfred.init +++ b/alfred/files/alfred.init @@ -46,11 +46,11 @@ wait_for_ll_address() for i in $(seq $timeout); do # We look for # - the link-local address (starts with fe80) - # - without tentative flag (bit 0x40 in the flags field; the first char of the flags field begins 38 columns after the fe80 prefix + # - without tentative flag (bit 0x40 in the flags field; the first char of the fifth field is evaluated) # - on interface $iface if awk ' BEGIN { RET=1 } - /^fe80.{37} [012389ab]/ { if ($6 == "'"$iface"'") RET=0 } + $1 ~ /^fe80/ && $5 ~ /^[012389ab]/ && $6 == "'"$iface"'" { RET=0 } END { exit RET } ' /proc/net/if_inet6; then return |
