mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
Fixed egrep search when using JSON
This commit is contained in:
parent
9563826e30
commit
6fefc4f011
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ yggdrasil_start()
|
||||||
/usr/local/bin/yggdrasil -genconf > /usr/local/etc/yggdrasil.conf
|
/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/')"
|
tap_name="$(echo -n ${tap_path} | tr -d '/dev/')"
|
||||||
|
|
||||||
/sbin/ifconfig ${tap_name} >/dev/null 2>&1
|
/sbin/ifconfig ${tap_name} >/dev/null 2>&1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue