mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-24 13:47:46 +08:00
This reverts commit 2e329bc68e.
grub-update command isn't found, and after enforcing script
results, we have a P0 blocker here.
Change-Id: Iaf4b17a91cdc865974a5f4f196bbb80b085a39c2
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
23 lines
765 B
Bash
Executable File
23 lines
765 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
source $BASEDIR/../common/shared/network_test_server_ip.txt
|
|
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
|
|
|
sed -i '$ a\[Daemon\]\nAutolock=false\nLockOnResume=false' ~/.config/kscreenlockerrc
|
|
|
|
echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
|
|
echo "$network_test_server_ip qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
|
echo "Set DISPLAY"
|
|
echo 'export DISPLAY=":0"' >> ~/.bashrc
|
|
echo "Disabling file indexing."
|
|
sudo balooctl disable
|
|
|
|
if [ "$http_proxy" != "" ]; then
|
|
sudo sed -i 's/PROXY_ENABLED=\"no\"/PROXY_ENABLED=\"yes\"/' /etc/sysconfig/proxy
|
|
sudo sed -i "s|HTTP_PROXY=\".*\"|HTTP_PROXY=\"$proxy\"|" /etc/sysconfig/proxy
|
|
fi
|
|
|