#!/sbin/sh umask 022 OUTFD=${2} ZIP=${3} ZIPDIR=$(dirname "${ZIP}") MODID=NanoDroid_FDroid 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 detect_mode install_fdroid nanodroid_finalize exit 0