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
f31a06c9
Unverified
Commit
f31a06c9
authored
Sep 19, 2018
by
devttys0
Committed by
GitHub
Sep 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #350 from evanpjensen/ubuntu_18_cramfs
fix issue #343
parents
1dd5c421
a1836cb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
deps.sh
deps.sh
+27
-0
No files found.
deps.sh
View file @
f31a06c9
...
...
@@ -40,6 +40,9 @@ then
elif
[
$distro_version
=
"17"
]
then
APT_CANDIDATES
=
"git build-essential libqt4-opengl mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsswap squashfs-tools zlib1g-dev liblzma-dev liblzo2-dev sleuthkit default-jdk lzop srecord cpio"
elif
[
$distro_version
=
"18"
]
then
APT_CANDIDATES
=
"git build-essential libqt4-opengl mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsswap squashfs-tools zlib1g-dev liblzma-dev liblzo2-dev sleuthkit default-jdk lzop srecord cpio"
else
APT_CANDIDATES
=
"git build-essential libqt4-opengl mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsprogs cramfsswap squashfs-tools zlib1g-dev liblzma-dev liblzo2-dev sleuthkit default-jdk lzop srecord cpio"
fi
...
...
@@ -93,6 +96,26 @@ function install_unstuff
rm
-rf
/tmp/unstuff
}
function
install_cramfstools
{
# Downloads cramfs tools from sourceforge and installs them to $INSTALL_LOCATION
TIME
=
`
date +%s
`
INSTALL_LOCATION
=
/usr/local/bin
# https://github.com/torvalds/linux/blob/master/fs/cramfs/README#L106
wget https://downloads.sourceforge.net/project/cramfs/cramfs/1.1/cramfs-1.1.tar.gz?ts
=
$TIME
-O
cramfs-1.1.tar.gz
tar
xf cramfs-1.1.tar.gz
# There is no "make install"
(
cd
cramfs-1.1
\
&&
make
\
&&
$SUDO
install mkcramfs
$INSTALL_LOCATION
\
&&
$SUDO
install cramfsck
$INSTALL_LOCATION
)
rm cramfs-1.1.tar.gz
rm
-rf
cramfs-1.1
}
function
install_ubireader
{
git clone https://github.com/jrspruitt/ubi_reader
...
...
@@ -239,3 +262,7 @@ install_jefferson
install_unstuff
install_ubireader
if
[
$distro_version
=
"18"
]
then
install_cramfstools
fi
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