ctf-tools/firmware-mod-kit/install

17 lines
348 B
Text
Raw Permalink Normal View History

#!/bin/bash -ex
2015-05-07 11:02:00 +00:00
2016-05-13 02:01:02 +00:00
git clone --depth 1 https://github.com/mirror/firmware-mod-kit.git
2015-05-07 11:02:00 +00:00
cd firmware-mod-kit/src
./configure
make
cd ../..
2015-05-07 18:40:24 +00:00
mkdir -p bin
2015-05-07 11:02:00 +00:00
for i in firmware-mod-kit/*.sh
do
2015-05-07 18:40:24 +00:00
echo "$(dirname $(readlink -m $0))/$i \"\$@\"" > bin/$(basename $i)
2015-05-07 11:02:00 +00:00
chmod 755 bin/$(basename $i)
done
2015-05-08 03:20:46 +00:00
sed -i -e "s/SUDO=\"sudo\"/SUDO=\"\"/" firmware-mod-kit/*.sh