2018-11-07 19:46:48 +00:00
|
|
|
#!/sbin/sh
|
|
|
|
|
|
|
|
umask 022
|
|
|
|
OUTFD=${2}
|
|
|
|
ZIP=${3}
|
|
|
|
|
|
|
|
ZIPDIR=$(dirname "${ZIP}")
|
2018-11-08 17:27:34 +00:00
|
|
|
MODID=NanoDroid_BromiteWebView
|
2018-11-07 19:46:48 +00:00
|
|
|
|
|
|
|
mkdir -p /dev/tmp
|
2019-04-25 18:49:26 +00:00
|
|
|
unzip -oq "${ZIP}" CommonInstaller -d "/dev/tmp"
|
2018-11-07 19:46:48 +00:00
|
|
|
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_progress 1.0 0
|
|
|
|
|
|
|
|
show_banner
|
|
|
|
set_progress 0.1
|
|
|
|
|
|
|
|
unpack_zip
|
|
|
|
mount_partitions
|
|
|
|
|
|
|
|
detect_arch
|
2018-11-10 21:03:23 +00:00
|
|
|
setup_busybox
|
2018-11-07 19:46:48 +00:00
|
|
|
|
|
|
|
get_cfg_setup
|
|
|
|
get_cfg_overlay
|
|
|
|
|
|
|
|
detect_mode
|
|
|
|
set_progress 0.2
|
|
|
|
|
|
|
|
install_bromite_webview
|
|
|
|
set_progress 0.75
|
|
|
|
|
|
|
|
nanodroid_finalize
|
|
|
|
set_progress 1.0
|
|
|
|
|
|
|
|
exit 0
|