Add no-posix files.

This commit is contained in:
2024-11-22 19:36:13 +01:00
parent 7d42a35f7a
commit 86fe1ba8b7
3 changed files with 73 additions and 224 deletions

View File

@@ -1,6 +1,6 @@
"""
Install script for the Python jailer.
Version: 0.2.0-alpha2
Version: 0.2.0-alpha1
"""
import os
import shutil
@@ -43,7 +43,7 @@ if setup_posix.lower() == "y":
with open("./lib64", "a+") as f:
f.write("symlnk /usr/lib64/")
f.close()
with open("./usr/bin/sh", "a+") as f:
with open("./usr/bin/sh.py", "a+") as f:
f.write("symlnk /usr/bin/shell.py")
f.close()
os.mkdir("./sys")
@@ -85,4 +85,4 @@ else:
f.write(usrname)
f.close()
print("Install completed! Run ./main.py to start the kernel!")
input("Press <Enter> to exit! ")
input("Press <Enter> to exit! ")