diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-31 14:57:03 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-10-31 14:57:13 +0100 |
commit | 7ddd3bb28789fc98f01367a4796dc3b4c7e95207 (patch) | |
tree | 81a5a226002746e2b7fad75a41b7b90bf9caada8 | |
parent | 3c600cab7ca96a3aafdaa802266e04ef93e2a602 (diff) | |
download | vyatta-cfg-7ddd3bb28789fc98f01367a4796dc3b4c7e95207.tar.gz vyatta-cfg-7ddd3bb28789fc98f01367a4796dc3b4c7e95207.zip |
vyos-router: dhcpv6: T3885: fix stderr output when main UUID source is not present
(cherry picked from commit 77569a0c2fa529289bfc6c8f77e8edbc221f54b9)
-rwxr-xr-x | scripts/init/vyos-router | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router index 2582736..30682d6 100755 --- a/scripts/init/vyos-router +++ b/scripts/init/vyos-router @@ -184,7 +184,9 @@ gen_duid () fi # DUID is based on the BIOS/EFI UUID. We omit additional - characters - UUID=$(cat ${UUID_FILE} | tr -d -) + if [ -f ${UUID_FILE} ]; then + UUID=$(cat ${UUID_FILE} | tr -d -) + fi if [ -z ${UUID} ]; then UUID=$(uuidgen --sha1 --namespace @dns --name $(cat ${UUID_FILE_ALT}) | tr -d -) fi |