aboutsummaryrefslogtreecommitdiffstats
path: root/test/ete/labs/huawei
diff options
context:
space:
mode:
Diffstat (limited to 'test/ete/labs/huawei')
-rwxr-xr-xtest/ete/labs/huawei/apt-proxy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ete/labs/huawei/apt-proxy.sh b/test/ete/labs/huawei/apt-proxy.sh
new file mode 100755
index 000000000..6aa7c5578
--- /dev/null
+++ b/test/ete/labs/huawei/apt-proxy.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+sed -i '/#!\/bin\/bash/a\
+ cat > /etc/apt/apt.conf.d/30proxy<<EOF\
+ Acquire::http { Proxy "http://10.145.122.118:3142"; };\
+ Acquire::https::Proxy "DIRECT";\
+ EOF\
+ apt-get -y update' $1