mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
39 lines
544 B
Bash
39 lines
544 B
Bash
#!/sbin/sh
|
|
|
|
umask 022
|
|
OUTFD=${2}
|
|
ZIP=${3}
|
|
|
|
mkdir -p /dev/tmp
|
|
unzip -oq "${ZIP}" -d "/dev/tmp"
|
|
if [ ! -f /dev/tmp/SysTest ]; then
|
|
echo " !! failed to load SysTest"
|
|
exit 1
|
|
else
|
|
source "/dev/tmp/SysTest"
|
|
fi
|
|
|
|
detect_bootmode
|
|
detect_outfd
|
|
|
|
show_banner
|
|
|
|
ui_print " || performing tests"
|
|
ui_print " "
|
|
ui_print " || storing results in $(dirname ${LOGFILE}):"
|
|
ui_print " || as $(basename ${LOGFILE})"
|
|
ui_print " "
|
|
|
|
setup_busybox
|
|
mount_partitions
|
|
|
|
system_test
|
|
store_results
|
|
|
|
${BOOTMODE} || umount_partitions
|
|
|
|
ui_print " > Done!"
|
|
ui_print " "
|
|
|
|
exit 0
|