АБ
Size: a a a
АБ
АБ
АБ
АБ
curl https://trash | sh
?АБ
Kv
Kv
АБ
ц
ц
АБ
N
ц
N
АБ
#!/usr/bin/env nix-shell
#!nix-shell -p coreutils nix-index patchelf dmenu -i bash
file=$1
patchelf --set-interpreter `nix-build --no-out-link "<nixpkgs>" -A glibc`/bin/ld-linux-x86-64.so.2 $file
rpath=$(ldd $file | sed -r "/^$/d" | cut -f1 -d' ' | cut -f2 | xargs -L 1 sh -c "nix-locate \$0 | dmenu -l 40 | awk '{print \$4;}' | xargs -L 1 dirname" | tr "\n" ":")
echo $rpath
patchelf --set-rpath $rpath $file
Kv
Kv