diff options
author | 2018-09-15 16:25:05 +0800 | |
---|---|---|
committer | 2018-09-17 09:01:15 +0800 | |
commit | 2cd6092cc0cbbaa21f688bb8cdbef64944c8399b (patch) | |
tree | ee96b770e3838d4047251af2681c4ed64c3306a3 /scripts/build_dmm_dep.sh | |
parent | 7d6f7e3a58ea0dda82d1f61cb9cf9b5076b4975a (diff) |
Fix: add dpdk building dependency
Change-Id: I98ed867a64f8cbd2a9375bb04bd7767ac1350bb2
Signed-off-by: Yalei Wang <william.wangyalei@huawei.com>
Diffstat (limited to 'scripts/build_dmm_dep.sh')
-rwxr-xr-x | scripts/build_dmm_dep.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |