ctf-tools/firmware-mod-kit/install

17 lines
334 B
Text
Raw Normal View History

2015-05-07 11:02:00 +00:00
#!/bin/bash -e
git clone https://code.google.com/p/firmware-mod-kit/
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