2018-01-23 20:11:52 +00:00
|
|
|
#!/sbin/sh
|
|
|
|
|
|
|
|
umask 022
|
|
|
|
OUTFD=${2}
|
|
|
|
ZIP=${3}
|
|
|
|
|
|
|
|
ZIPDIR=$(dirname "${ZIP}")
|
|
|
|
MODID=NanoDroid
|
|
|
|
|
2018-09-01 09:23:15 +00:00
|
|
|
mkdir -p /dev/tmp
|
2019-04-25 18:49:26 +00:00
|
|
|
unzip -oq "${ZIP}" CommonInstaller -d "/dev/tmp"
|
2018-03-15 19:17:41 +00:00
|
|
|
if [ ! -f /dev/tmp/CommonInstaller ]; then
|
2018-01-28 20:20:47 +00:00
|
|
|
echo " !! failed to load Common Installer"
|
|
|
|
exit 1
|
|
|
|
else
|
2018-03-15 19:17:41 +00:00
|
|
|
source "/dev/tmp/CommonInstaller"
|
2018-01-28 20:20:47 +00:00
|
|
|
fi
|
2018-01-23 20:11:52 +00:00
|
|
|
|
|
|
|
detect_bootmode
|
|
|
|
detect_outfd
|
2019-07-09 16:36:28 +00:00
|
|
|
#check_space
|
2018-03-28 18:23:26 +00:00
|
|
|
show_progress 1.0 0
|
2018-01-23 20:11:52 +00:00
|
|
|
|
|
|
|
show_banner
|
2018-03-28 18:23:26 +00:00
|
|
|
set_progress 0.1
|
2018-01-23 20:11:52 +00:00
|
|
|
|
|
|
|
unpack_zip
|
2018-09-01 09:23:15 +00:00
|
|
|
mount_partitions
|
|
|
|
|
2018-01-23 20:11:52 +00:00
|
|
|
detect_arch
|
2018-11-10 21:03:23 +00:00
|
|
|
setup_busybox
|
2018-09-01 09:23:15 +00:00
|
|
|
|
2018-03-28 18:23:26 +00:00
|
|
|
set_progress 0.2
|
2018-01-23 20:11:52 +00:00
|
|
|
|
|
|
|
get_cfg_setup
|
|
|
|
get_cfg_apps
|
|
|
|
get_cfg_overlay
|
|
|
|
|
|
|
|
detect_mode
|
2018-03-28 18:23:26 +00:00
|
|
|
set_progress 0.3
|
|
|
|
|
2018-04-22 18:47:14 +00:00
|
|
|
install_nanodroidscripts
|
2018-01-23 20:11:52 +00:00
|
|
|
install_microg
|
|
|
|
install_mapsv1
|
|
|
|
install_gsync
|
|
|
|
install_fdroid
|
|
|
|
install_store
|
2018-03-28 18:23:26 +00:00
|
|
|
set_progress 0.5
|
|
|
|
|
2018-01-23 20:11:52 +00:00
|
|
|
install_apps
|
2018-03-28 18:23:26 +00:00
|
|
|
set_progress 0.75
|
|
|
|
|
2018-01-23 20:11:52 +00:00
|
|
|
install_zelda
|
|
|
|
install_initd
|
|
|
|
install_swipe
|
|
|
|
install_bash
|
|
|
|
install_nano
|
|
|
|
install_shell_utils
|
2018-03-17 13:28:47 +00:00
|
|
|
install_fonts
|
2018-03-28 18:23:26 +00:00
|
|
|
set_progress 0.9
|
2018-01-23 20:11:52 +00:00
|
|
|
|
|
|
|
nanodroid_finalize
|
2018-03-28 18:23:26 +00:00
|
|
|
set_progress 1.0
|
2018-01-23 20:11:52 +00:00
|
|
|
|
|
|
|
exit 0
|