mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Add managing of proot-static
This commit is contained in:
parent
41fca9b4e9
commit
eb2fcc80f5
6 changed files with 48 additions and 21 deletions
|
|
@ -31,6 +31,10 @@ writeScript "login" ''
|
|||
exec ${installationDir}/bin/login "$@"
|
||||
''
|
||||
else ''
|
||||
if [[ -x ${installationDir}/bin/.proot-static.new ]] && ! $(/system/bin/pgrep proot-static); then
|
||||
/system/bin/mv ${installationDir}/bin/.proot-static.new ${installationDir}/bin/proot-static
|
||||
fi
|
||||
|
||||
exec ${installationDir}/bin/proot-static \
|
||||
-b ${installationDir}/nix:/nix \
|
||||
-b ${installationDir}/bin:/bin \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue