Utilisation de kitty par défaut, copie de nouvelles librairies...non fonctionnel

This commit is contained in:
Horde Nicolas 2021-07-16 08:59:20 +02:00
parent 74be98f091
commit 6d87ea0b61
2 changed files with 21 additions and 1 deletions

View File

@ -37,7 +37,7 @@ stop:
delete: delete:
rm -rf ./ia86 rm -rf ./ia86
copy: libcapstone.so.4 libunicorn.so.1 libfinal.so.0.7.2 libkeystone.so.0 libc.musl-x86_64.so.1 copy: libcapstone.so.4 libunicorn.so.1 libfinal.so.0.7.2 libkeystone.so.0 libc.musl-x86_64.so.1 libstdc++.so.6.0.28 libz.so.1.2.11 libgcc_s.so.1
libcapstone.so.4: libcapstone.so.4:
${DOCKER} cp /usr/lib/libcapstone.so.4 /data/libcapstone.so.4 ${DOCKER} cp /usr/lib/libcapstone.so.4 /data/libcapstone.so.4
@ -54,3 +54,15 @@ libkeystone.so.0:
libc.musl-x86_64.so.1: libc.musl-x86_64.so.1:
${DOCKER} cp /lib/libc.musl-x86_64.so.1 /data/libc.musl-x86_64.so.1 ${DOCKER} cp /lib/libc.musl-x86_64.so.1 /data/libc.musl-x86_64.so.1
libz.so.1.2.11:
${DOCKER} cp /lib/libz.so.1.2.11 /data/libz.so.1.2.11
ln -s ./libz.so.1.2.11 ./libz.so.1
libstdc++.so.6.0.28:
${DOCKER} cp /usr/lib/libstdc++.so.6.0.28 /data/libstdc++.so.6.0.28
ln -s ./libstdc++.so.6.0.28 ./libstdc++.so.6
libgcc_s.so.1:
${DOCKER} cp /usr/lib/libgcc_s.so.1 /data/libgcc_s.so.1

View File

@ -1,6 +1,14 @@
#!/bin/bash #!/bin/bash
X=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1) X=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)
Y=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2) Y=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)
KITTY=$(kitty -v|grep created)
if [ "${KITTY}" != "" ]; then
echo "Kitty installé"
if [ ${X} -ge 1920 ]; then
kitty --start-as fullscreen bash -c "docker run -it -e COLUMNS=213 -e LINES=58 --name maker --rm -v $(pwd):/data maker ./ia86"
exit
fi
fi
if [ ${X} -ge 1920 ]; then if [ ${X} -ge 1920 ]; then
SIZE=11 SIZE=11
elif [ ${X} -ge 1680 ]; then elif [ ${X} -ge 1680 ]; then