mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
54 lines
699 B
Bash
54 lines
699 B
Bash
#!/sbin/sh
|
|
|
|
umask 022
|
|
OUTFD=${2}
|
|
ZIP=${3}
|
|
|
|
ZIPDIR=$(dirname "${ZIP}")
|
|
MODID=NanoDroid
|
|
|
|
umount /system &>/dev/null
|
|
|
|
mkdir /dev/tmp
|
|
unzip -o "${ZIP}" CommonInstaller -d "/dev/tmp"
|
|
if [ ! -f /dev/tmp/CommonInstaller ]; then
|
|
echo " !! failed to load Common Installer"
|
|
exit 1
|
|
else
|
|
source "/dev/tmp/CommonInstaller"
|
|
fi
|
|
|
|
detect_bootmode
|
|
detect_outfd
|
|
|
|
show_banner
|
|
|
|
mount_partitions
|
|
unpack_zip
|
|
detect_arch
|
|
|
|
get_cfg_setup
|
|
get_cfg_apps
|
|
get_cfg_overlay
|
|
|
|
detect_mode
|
|
|
|
install_microg
|
|
install_mapsv1
|
|
install_gsync
|
|
install_fdroid
|
|
install_store
|
|
install_apps
|
|
install_zelda
|
|
install_initd
|
|
install_swipe
|
|
install_bash
|
|
install_nano
|
|
install_nanodroidscripts
|
|
install_shell_utils
|
|
install_fonts
|
|
|
|
nanodroid_finalize
|
|
|
|
exit 0
|