From 2cd6092cc0cbbaa21f688bb8cdbef64944c8399b Mon Sep 17 00:00:00 2001 From: Yalei Wang Date: Sat, 15 Sep 2018 16:25:05 +0800 Subject: Fix: add dpdk building dependency Change-Id: I98ed867a64f8cbd2a9375bb04bd7767ac1350bb2 Signed-off-by: Yalei Wang --- scripts/build_dmm_dep.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/build_dmm_dep.sh') diff --git a/scripts/build_dmm_dep.sh b/scripts/build_dmm_dep.sh index 980b3f5..ecbb686 100755 --- a/scripts/build_dmm_dep.sh +++ b/scripts/build_dmm_dep.sh @@ -2,6 +2,11 @@ set -x +# add inherited proxy for sudo user +LINE='Defaults env_keep += "ftp_proxy http_proxy https_proxy no_proxy"' +FILE=/etc/sudoers +grep -qF -- "$LINE" "$FILE" || sudo echo "$LINE" >> "$FILE" + OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') #set and check the environment for Linux -- cgit 1.2.3-korg