Fixed egrep search when using JSON

This commit is contained in:
Rany 2020-02-01 12:12:47 +02:00 committed by GitHub
parent 9563826e30
commit 6fefc4f011
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ yggdrasil_start()
/usr/local/bin/yggdrasil -genconf > /usr/local/etc/yggdrasil.conf
)
tap_path="$(cat /usr/local/etc/yggdrasil.conf | egrep -o '/dev/tap[0-9]{1,2}$')"
tap_path="$(cat /usr/local/etc/yggdrasil.conf | egrep -o '/dev/tap[0-9]{1,2}')"
tap_name="$(echo -n ${tap_path} | tr -d '/dev/')"
/sbin/ifconfig ${tap_name} >/dev/null 2>&1