Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
5cef3864
Commit
5cef3864
authored
Nov 30, 2013
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated installer script and INSTALL file
parent
5c79abfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
26 deletions
+34
-26
easy_install.sh
src/easy_install.sh
+34
-26
No files found.
src/easy_install.sh
View file @
5cef3864
#!/bin/bash
# Easy installer script for Debian/RedHat
/OSX
systems.
# Easy installer script for Debian/RedHat systems.
SUDO
=
$(
which
sudo
)
SUMOUNT
=
"
$1
$2
"
function
fmk
{
# Get and build the firmware mod kit
$SUDO
rm
-rf
/opt/firmware-mod-kit/
$SUDO
mkdir
-p
/opt/firmware-mod-kit
$SUDO
chmod a+rwx /opt/firmware-mod-kit
git clone https://code.google.com/p/firmware-mod-kit /opt/firmware-mod-kit/
cd
/opt/firmware-mod-kit/src
./configure
&&
$SUDO
make
if
[
"
$(
echo
"
$SUMOUNT
"
|
grep
-e
'--sumount'
)
"
!=
""
]
then
# The following will allow you - and others - to mount/unmount file systems without root permissions.
# This may be problematic, especially on a multi-user system, so think about it first.
$SUDO
chown root ./mountcp/mountsu
$SUDO
chmod u+s ./mountcp/mountsu
$SUDO
chmod o-w ./mountcp/mountsu
$SUDO
chown root ./mountcp/umountsu
$SUDO
chmod u+s ./mountcp/umountsu
$SUDO
chmod o-w ./mountcp/umountsu
$SUDO
chown root ./jffs2/sunjffs2
$SUDO
chmod u+s ./jffs2/sunjffs2
$SUDO
chmod o-w ./jffs2/sunjffs2
fi
cd
-
}
function
libmagic
{
SITE
=
"ftp://ftp.astron.com/pub/file/"
# 5.11 is the most recent version that builds out of the box on OSX.
VERSION
=
"5.11"
OUTFILE
=
"file-
$VERSION
.tar.gz"
URL
=
"
$SITE$OUTFILE
"
...
...
@@ -138,30 +169,7 @@ then
fi
# Get and build the firmware mod kit
$SUDO
rm
-rf
/opt/firmware-mod-kit/
$SUDO
mkdir
-p
/opt/firmware-mod-kit
$SUDO
chmod a+rwx /opt/firmware-mod-kit
git clone https://code.google.com/p/firmware-mod-kit /opt/firmware-mod-kit/
cd
/opt/firmware-mod-kit/src
./configure
&&
$SUDO
make
if
[
"
$1
"
==
"--sumount"
]
||
[
"
$2
"
==
"--sumount"
]
then
# The following will allow you - and others - to mount/unmount file systems without root permissions.
# This may be problematic, especially on a multi-user system, so think about it first.
$SUDO
chown root ./mountcp/mountsu
$SUDO
chmod u+s ./mountcp/mountsu
$SUDO
chmod o-w ./mountcp/mountsu
$SUDO
chown root ./mountcp/umountsu
$SUDO
chmod u+s ./mountcp/umountsu
$SUDO
chmod o-w ./mountcp/umountsu
$SUDO
chown root ./jffs2/sunjffs2
$SUDO
chmod u+s ./jffs2/sunjffs2
$SUDO
chmod o-w ./jffs2/sunjffs2
fi
cd
-
fmk
# Install binwalk
$SUDO
python setup.py install
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment