Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports Electra 1.0.2 #18

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions bfinject
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,17 @@ fi
#
# Detect LiberiOS vs Electra
#
if [ -f /bootstrap/inject_criticald ]; then
# This is Electra
if [ -f /electra/inject_criticald ]; then
# This is Electra >= 1.0.2
echo "[+] Electra detected."
mkdir -p /electra/usr/local/bin
cp jtool.liberios /electra/usr/local/bin/
chmod +x /electra/usr/local/bin/jtool.liberios
JTOOL=/electra/usr/local/bin/jtool.liberios
cp bfinject4realz /electra/usr/local/bin/
INJECTOR=/electra/usr/local/bin/bfinject4realz
elif [ -f /bootstrap/inject_criticald ]; then
# This is Electra < 1.0.2
echo "[+] Electra detected."
cp jtool.liberios /bootstrap/usr/local/bin/
chmod +x /bootstrap/usr/local/bin/jtool.liberios
Expand Down