| ab86a00f |
sago007 |
2017-08-31 19:08 |
1 |
#!/bin/bash |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
2 |
|
| ab86a00f |
sago007 |
2017-08-31 19:08 |
3 |
# Move to script's directory |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
4 |
cd "`dirname "$0"`" |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
5 |
|
| ab86a00f |
sago007 |
2017-08-31 19:08 |
6 |
# Get the kernel/architecture information |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
7 |
ARCH=`uname -m` |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
8 |
|
| ab86a00f |
sago007 |
2017-08-31 19:08 |
9 |
# Set the libpath and pick the proper binary |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
10 |
if [ "$ARCH" == "x86_64" ]; then |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
11 |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86_64/ |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
12 |
./x86_64/blockattack "$@" |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
13 |
else |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
14 |
echo "Unsupported arch" |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
15 |
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86/ |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
16 |
#./x86/foobar.x86 $@ |
| ab86a00f |
sago007 |
2017-08-31 19:08 |
17 |
fi |
|
|
1970-01-01 00:00 |
18 |
|