
To create a new Magisk Module with your own /etc/profile do:

unpack the zip file with the /etc/profile in an empty directory

edit the file  system/etc/profile from the zip file

optional edit the files config.sh and module.prop from the zip file to document your changes

also optional edit the script customize.sh from the zip file. That script will be executed once while the module will be installed so you might add the code create the home directories or any other code here

recerate the zip file

Documentation for creating Magisk Modules: [Magisk Develop Documentation](https://topjohnwu.github.io/Magisk/guides.html)
