summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/get.sh7
-rw-r--r--include/init.sh5
-rw-r--r--include/inject.sh1
3 files changed, 9 insertions, 4 deletions
diff --git a/include/get.sh b/include/get.sh
index 39161a4a..834acd08 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -272,7 +272,12 @@ try_fetch_file()
try_curl()
{
- _ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
+ case "$2" in
+ https://www.supermicro.com/*)
+ _ua="curl/8.6.0";;
+ *)
+ _ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0";;
+ esac
( x_ curl --location --retry 3 -A "$_ua" "$2" -o "$1" ) \
|| ( x_ wget --tries 3 -U "$_ua" "$2" -O "$1" ) \
diff --git a/include/init.sh b/include/init.sh
index abd06862..cde489dd 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -5,8 +5,9 @@
# Copyright (c) 2020-2025 Leah Rowe <leah@libreboot.org>
# Copyright (c) 2025 Alper Nebi Yasak <alpernebiyasak@gmail.com>
-export LC_COLLATE=C
-export LC_ALL=C
+export LANG=C.UTF-8
+export LC_COLLATE=C.UTF-8
+export LC_ALL=C.UTF-8
projectname="libreboot"
projectsite="https://libreboot.org/"
diff --git a/include/inject.sh b/include/inject.sh
index ee3df6af..6a1b0768 100644
--- a/include/inject.sh
+++ b/include/inject.sh
@@ -40,7 +40,6 @@ inject()
archive="$1";
new_mac="xx:xx:xx:xx:xx:xx"
- new_mac=""
nuke=""
xchanged=""