move that to two init

old-commit-hash: d00f1692b7
commatwo_master
Adeeb Shihadeh 4 years ago
parent 8f26c0bff9
commit 089843bf3c
  1. 10
      launch_chffrplus.sh
  2. 4
      selfdrive/ui/qt/setup/setup.cc

@ -14,6 +14,9 @@ function tici_init {
} }
function two_init { function two_init {
# Wifi scan
wpa_cli IFNAME=wlan0 SCAN
# Restrict Android and other system processes to the first two cores # Restrict Android and other system processes to the first two cores
echo 0-1 > /dev/cpuset/background/cpus echo 0-1 > /dev/cpuset/background/cpus
echo 0-1 > /dev/cpuset/system-background/cpus echo 0-1 > /dev/cpuset/system-background/cpus
@ -81,9 +84,6 @@ function two_init {
} }
function launch { function launch {
# Wifi scan
wpa_cli IFNAME=wlan0 SCAN
# Remove orphaned git lock if it exists on boot # Remove orphaned git lock if it exists on boot
[ -f "$DIR/.git/index.lock" ] && rm -f $DIR/.git/index.lock [ -f "$DIR/.git/index.lock" ] && rm -f $DIR/.git/index.lock
@ -129,9 +129,7 @@ function launch {
# comma two init # comma two init
if [ -f /EON ]; then if [ -f /EON ]; then
two_init two_init
fi elif [ -f /TICI ]; then
if [ -f /TICI ]; then
tici_init tici_init
fi fi

@ -26,8 +26,8 @@ int download(std::string url) {
curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp); curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
curl_easy_setopt (curl, CURLOPT_VERBOSE, 1L); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
curl_easy_setopt (curl, CURLOPT_USERAGENT, USER_AGENT); curl_easy_setopt(curl, CURLOPT_USERAGENT, USER_AGENT);
curl_easy_perform(curl); curl_easy_perform(curl);
curl_easy_cleanup(curl); curl_easy_cleanup(curl);
fclose(fp); fclose(fp);

Loading…
Cancel
Save