new: added Xiaomi MiFlash

pfff what a PITA.. well its there now :)

Change-Id: I620f13c6f026a74977c4e3370fe9c70ea6ae315f
closes: https://code.binbash.it:8443/Carbon-Fusion/build_fwul/issues/62
parent 74e84359
......@@ -494,6 +494,39 @@ chmod +x /home/$LOGINUSR/programs/sadb/starter.sh
pacman -Q abootimg-git || su -c - $LOGINUSR "trizen -S --noconfirm abootimg-git"
pacman -Q bootimgtool-git || su -c - $LOGINUSR "trizen -S --noconfirm bootimgtool-git"
# install Xiaomi MiFlash
# https://code.binbash.it:8443/Carbon-Fusion/build_fwul/issues/62
if [ ! -d /home/$LOGINUSR/programs/MiFlash ];then
$TINYCLONE https://github.com/limitedeternity/MiFlash-Linux.git /home/$LOGINUSR/programs/MiFlash
# ensure the stupid setup do not run in FWUL
> /home/$LOGINUSR/.xiaomi_tool
# fix help
ln -s /home/$LOGINUSR/programs/MiFlash-Linux/README.md /home/$LOGINUSR/programs/MiFlash/Xiaomi_MiFlash/.bin/xiaomi_tools/README.txt
sed -i 's/gedit/leafpad/g' /home/$LOGINUSR/programs/MiFlash/Xiaomi_MiFlash/.bin/xiaomi_tools/xiaomi_tools.cfg
# catch the icon
wget -O /home/$LOGINUSR/programs/MiFlash/Xiaomi.png https://www.xiaomiflash.com/img/Xiaomi.png
# make it usable ( - do not use go.sh - )
cat >/home/$LOGINUSR/programs/MiFlash/starter.sh <<EOEXECXIA
#!/bin/bash
cd /home/$LOGINUSR/programs/MiFlash/Xiaomi_MiFlash
xfce4-terminal --geometry=99x100 -x bash -c "$PWD/.bin/xiaomi_tools/xiaomi_tools.cfg; bash"
EOEXECXIA
chmod +x /home/$LOGINUSR/programs/MiFlash/starter.sh
[ ! -d /home/$LOGINUSR/Desktop/Xiaomi/ ] && mkdir /home/$LOGINUSR/Desktop/Xiaomi && chown $LOGINUSR /home/$LOGINUSR/Desktop/Xiaomi
cat >/home/$LOGINUSR/Desktop/Xiaomi/miflash.desktop <<EODXIA
[Desktop Entry]
Version=1.0
Type=Application
Comment=
Terminal=false
Name=Xiaomi MiFlash
Exec=/home/$LOGINUSR/programs/MiFlash/starter.sh
Icon=/home/$LOGINUSR/programs/MiFlash/Xiaomi.png
Path=/home/$LOGINUSR/programs/MiFlash/
EODXIA
fi
# install FWUL LivePatcher
#https://github.com/Carbon-Fusion/build_fwul/issues/57
# $TINYCLONE https://github.com/steadfasterX/arch_fwulpatch-pkg.git /tmp/fwulpatch \
......@@ -830,7 +863,11 @@ $RSUDOERS
/home/$LOGINUSR/.fwul/tmate-logo.png
/home/$LOGINUSR/.config/autostart/hex.desktop
/home/$LOGINUSR/.fwul/hex.sh
/home/$LOGINUSR/Desktop/io.github.Hexchat.desktop"
/home/$LOGINUSR/Desktop/io.github.Hexchat.desktop
/home/$LOGINUSR/Desktop/Xiaomi/miflash.desktop
/home/$LOGINUSR/programs/MiFlash-Linux/README.md
/home/$LOGINUSR/programs/MiFlash/Xiaomi.png
/home/$LOGINUSR/programs/MiFlash/starter.sh"
# 32bit requirements (extend with 32bit ONLY.
# If the test is the same for both arch use REQFILES instead)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment