[Android Software/Hacking General [Developers Only]] thommy86:
installation aborted

I made a aroma installer for the rom i am currently running.. but i get an installation aborted error.. without a status.. there must be something wrong with the script.. but i already looked to much and cant see any errors..

can someone please have a look at it..

aroma-config

### LICENSE:
#
# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### FILE INFO:
#
# AROMA Installer 2.00 - AROMA Installer Test Script Configuration
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
# http://www.amarullz.com/
#
# Binary Version : 2.00
# Binary Codename : Dahlia
#

calibrate("0.8429","51","0.9658", "9", "yes");
ini_set("rom_name","Miui v4");
ini_set("rom_version","2.6.1");
ini_set("rom_author","MiuiScotland Team");
ini_set("rom_device","Samsung Galaxy S2 I9100");
ini_set("rom_date","1 June 2012");

splash(
5000,
"miuiscotland"
);

anisplash(
4,
"splash/a1", 500,
"splash/a2", 30,
"splash/a3", 30,
"splash/a4", 30,
"splash/a5", 30,
"splash/a6", 30
);

#
# Set Small Font to Support all fonts
#
fontresload( "0", "ttf/DroidSans.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" );
#-- Use sets of font (Font Family)

###################################################################################################################
#
# SHOW LANGUAGE SELECTION
#
selectbox(
#-- Title
"Select Language",

#-- Sub Title
"Please select installer language that you want to use in this installation test:",

#-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
"@default",

#-- Will be saved in /tmp/aroma/theme.prop
"lang.prop",

#---------------------------------[ Selectbox Without Group ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"English", "Welcome to Installer",	1, #-- selected.0 = 1
"Indonesian", "Selamat datang di Installer", 0, #-- selected.0 = 2
"Espanol", "Bienvenido al Instalador",	0, #-- selected.0 = 3
"Simplified Chinesse","?????",	0, #-- selected.0 = 4
"Arabic", "????? ??? ?? ??????",	0, #-- selected.0 = 5
"French", "Bienvenue dans l'installateur", 0, #-- selected.0 = 6
"Russian", "????? ?????????? ? ??????????", 0, #-- selected.0 = 7
"Italian", "Benvenuti Installer", 0, #-- selected.0 = 8
"Hebrew", "?????? ????? ??????",	0, #-- selected.0 = 9
"Germany", "Willkommen bei Installer",	0	#-- selected.0 = 10
"Nederlands", "Welkom bij de installer",	0	#-- selected.0 = 11
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);

##
# SET LANGUAGE & FONT FAMILY
#
if prop("lang.prop","selected.0")=="1" then
loadlang("langs/en.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )
fontresload( "1", "ttf/DroidSans.ttf", "18" ); #-- "1" = Big Font
endif;

if prop("lang.prop","selected.0")=="2" then
loadlang("langs/id.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="3" then
loadlang("langs/es.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="4" then
loadlang("langs/cn.lang");
fontresload( "0", "ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
fontresload( "1", "ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="5" then
loadlang("langs/ar.lang");
fontresload( "0", "ttf/DroidSansArabic.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
fontresload( "1", "ttf/DroidSansArabic.ttf;ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="6" then
loadlang("langs/fr.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="7" then
loadlang("langs/ru.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="8" then
loadlang("langs/it.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="9" then
loadlang("langs/he.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="10" then
loadlang("langs/de.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

if prop("lang.prop","selected.0")=="11" then
loadlang("langs/nl.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

###################################################################################################################
#
# STEP 1 - SELECT THEME - deleted
#

theme("miui4");

###################################################################################################################
#
# STEP 2 - SHOW ROM INFORMATION
#
viewbox(
#-- Title
"<~welcome.title>",

#-- Text
"<~welcome.text1> <b>"+
#-- Get Config Value
ini_get("rom_name")+
"</b> <~common.for> <b>"+ini_get("rom_device")+"</b>.\n\n"+

"<~welcome.text2>\n\n"+

" <~welcome.version>\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" <~welcome.codename>\t: <b><#selectbg_g>Dahlia</#></b>\n"+
" <~welcome.updated>\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"<~welcome.next>",

#-- Icon
"@welcome"
);

###################################################################################################################
#
# STEP 3 - LICENSE
#
agreebox(
#-- Title
"<~terms.title>",

#-- Subtitle / Description
"<~terms.desc>",

#-- Icon
"@license",

#-- Text Content ( Read from <AROMA Resource Dir>/license.txt )
resread("license.txt"),

#-- Checkbox Text
"<~terms.check>",

#-- Unchecked Alert Message
"<~terms.confirm>"
);

###################################################################################################################
#
# STEP 4 - CHANGELOG
#
textbox(
#-- Title
"<~changelog.title>",

#-- Subtitle
"Miuiscotland +ini_get("rom_version")+",

#-- Icon
"@update",

#-- Arg 4
resread("changelog.txt")
);

##
##-- Back To English :D - and Use DroidSans.ttf
##
# alert("Back To English","OK, Multilanguage demo ends here... It will use english now...", "@info");
# loadlang("langs/en.lang");
# fontresload( "0", "ttf/DroidSans.ttf", "12" );
# fontresload( "1", "ttf/DroidSans.ttf", "18" );
##
##

###################################################################################################################
#
# STEP 5 - SHOW MENUBOX - (STEP 6 + STEP 7)
#
menubox(
#-- Title
"MIUI Scotland AROMA Installer",

#-- Sub Title
"Please select a installation method",

#-- Icon
"@apps",

#-- Will be saved in /tmp/aroma/menu.prop
"menu.prop",

#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#

"Default installation", "ROM will be normally installed.", "@install", #-- selected = 1
"Custom installation", "You can choose different kernels", "@default", #-- selected = 2
);

###################################################################################################################
# #
# AROMA INSTALLER DEMO #
# #
###################################################################################################################

##--------------------------------------
#
# System Info Demo
#

if (prop("menu.prop","selected")=="1") then
#-- IF "Default" Installation, don't show configuration, then write default mods.prop
#-- NOTE: mods.prop should exists, or updater-script will error
writetmpfile(
#-- Prop file will write to /tmp/aroma/mods.prop
"mods.prop",

#-- Default Values
"selected.1=1\n"+ #-- Default Kernel = SiyahKernel v3.3.1
"selected.2=6\n"+ #-- Default Modem = XXLPS

);
endif;
if
( (prop("type.prop","selected")=="2") then

selectbox(
#-- Title
"<~installmain.title>",

#-- Sub Title
"<~installmain.subtitle>",

#-- Icon: <AROMA Resource Dir>/icons/default.png or <ThemeDir>/icon.default.png
"@default",

#-- Will be saved in /tmp/aroma/mods.prop
"mods.prop",

#-----------------------------------[ Selectbox With Groups ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"Kernel", "",	2, #-- Group 1. key = "selected.1"
"SiyahKernel v3.3.1", "installing Siyah kernel", 0, #-- selected.1 = 1
"N.E.A.K. v2.0.5x ", "installing N.E.A.K. kernel", 0, #-- selected.1 = 2

"Modem", "", 2, #-- Group 2. key = "selected.2"
"KE7",	"Installing KE7", 0, #-- selected.2 = 1
"KH3",	"Installing KH3", 0, #-- selected.2 = 2
"KI3",	"Installing KI3", 0, #-- selected.2 = 3
"KI4", "Installing KI4", 0, #-- selected.2 = 4
"KL1", "Installing KL1", 0, #-- selected.2 = 5
"XXLPS",	"Installing XXLPS", 0, #-- selected.2 = 6
"NEKF2",	"Installing NEKF2", 0, #-- selected.2 = 7
"NELP2",	"Installing NELP2", 0, #-- selected.2 = 8

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
endif;

###################################################################################################################
# #
# INSTALLATION DEMO #
# #
###################################################################################################################

###################################################################################################################
#
# STEP 8 - CUSTOMIZE YOUR INSTALLATION * APPS COMMING SOON)
#

##
#
# Next Screen is Installation UI, So change the next button text to "Install Now"
#
ini_set("text_next", "Install Now");

###################################################################################################################
#
# STEP 9 - MAKE SURE USER KNOW THAT NEXT STEP WAS INSTALLATION PROCESS
#
viewbox(
#-- Title
"Ready to Install",

#-- Text
"The wizard is ready to begin installation.\n\n"+
"Press <b>Install Now</b> to begin the installation.\n\n"+
"If you want to review or change any of your installation settings, press <b>Back</b>. Press Menu Key -> Quit Installation to exit the wizard.",

#-- Icon
"@install"
);

##
#
# Next Button in successfull installation should be back to "Next >"
#
ini_set("text_next", "Next >");

###################################################################################################################
#
# STEP 10 - INSTALLATION PROCESS
#
setvar("retstatus",
install(
#-- Title
"Installing",

#-- Installation Process message
"<b>"+ini_get("rom_name")+"</b> are being installed.\n\n"+
"Please wait while installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes.",

#-- Installation Icon
"@install",

#-- Installation Finish Message
"The installation wizard has successfully installed <b>"+ini_get("rom_name")+
"</b>. Press Next to continue."
)
);

##
#
# Next Button is "Finish"
#
ini_set("text_next", "Finish");

###################################################################################################################
#
# STEP 11 - FINISH MESSAGE, Add Checkbox to Reboot or No. Save in "reboot_it" variable
#
# You can use return value or "reboot_it" variable to retrive checkbox value
# Example:
# if (checkviewbox(....)=="1" then
# ... checked ...
# endif;
#
checkviewbox(
#-- Title
"Installation Completed",

#-- Text
"<#selectbg_g><b>Congratulation...</b></#>\n\n"+
"<b>"+ini_get("rom_name")+"</b> has been installed into your device.\n\n"+
"Installer Status: "+getvar("retstatus")+"\n\n",

#-- Icon
"@welcome",

#-- Checkbox Text
"Reboot your device now.",

#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
"1",

#-- Save checked value in variable "reboot_it" (Optional)
"reboot_it"
);

###
#
# Check if reboot checkbox was checked
if
getvar("reboot_it")=="1"
then
#
# reboot("onfinish"); - Reboot if anything finished
# reboot("now"); - Reboot Directly
# reboot("disable"); - If you set reboot("onfinish") before, use this command to revert it.
#
reboot("onfinish");
endif;

#---- FINISH

updater-script

# AROMA Installer - Installer Script
# (c) 2011 by Ahmad Amarullah
# amarullz - xda-developers
#	-
# Miui v4
# Miui Scotland

run_program("/sbin/mount", "/dev/block/mmcblk0p9", "/system");
delete_recursive("/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/cache");
delete_recursive("/cache");
package_extract_file("miuiscotland/check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
show_progress(0.500000, 80);

ui_print("Installing system ...");
package_extract_dir("system", "/system");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
symlink("/system/xbin/busybox", "/system/bin/busybox");
ui_print("Creating system links...");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("debuggerd", "/system/bin/csview");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
"/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
"/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
"/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
"/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
"/system/bin/kill", "/system/bin/ln", "/system/bin/log",
"/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
"/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",
"/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/reboot", "/system/bin/renice",
"/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",
"/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent",
"/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",
"/system/bin/smd", "/system/bin/start", "/system/bin/stop",
"/system/bin/sync", "/system/bin/top", "/system/bin/touch",
"/system/bin/umount", "/system/bin/uptime", "/system/bin/vmstat",
"/system/bin/watchprops",
"/system/bin/wipe");
ui_print("Set permission...");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(1000, 1000, 0775, "/system/etc/security");
set_perm(1000, 1000, 0775, "/system/etc/security/.drm");
set_perm(1000, 1000, 0775, "/system/etc/security/cacerts");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw.so");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-r0-ri30.4a/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rn30-ri30.5/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rp30-ri30.5/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N/full_model.bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 0644, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
set_perm(0, 0, 06755, "/system/xbin/su");
show_progress(0.100000, 0);
package_extract_file("miuiscotland/efs_backup.sh", "/tmp/efs_backup.sh");
ui_print("Backing up efs...");
set_perm(0, 0, 0755, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");

#-- Kernel
ui_print("@Kernel & Mods");
package_extract_file("miuiscotland/flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");

if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "1"
then
ui_print(" SiyahKernel v3.3.1");
ui_print(" Extracting zImage");
ui_print(" Writing RAW image");
assert(package_extract_file("miuiscotland/kernel/siyah/zImage", "/tmp/zImage"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p5", "/tmp/zImage"),
delete("/tmp/zImage"));
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.1") == "2"
then
ui_print(" N.E.A.K. v2.0.5x ");
ui_print(" Extracting zImage");
ui_print(" Writing RAW image");
assert(package_extract_file("miuiscotland/kernel/neak/zImage", "/tmp/zImage"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p5", "/tmp/zImage"),
delete("/tmp/zImage"));

ui_print("* Moving init.d folder to init.d-old *");
delete_recursive("/data/neak");
delete_recursive("/system/etc/init.d-old");
run_program("/sbin/busybox", "mv", "-f /system/etc/init.d /system/etc/init.d-old");
run_program("/sbin/busybox", "mkdir", "/system/etc/init.d");
endif;

#--- END OF Kernel

set_progress(0.93);

#-- Modem

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "1"
then
ui_print("Installing Modem KE7... ");
assert(package_extract_file("miuiscotland/modem/KE7/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "2"
then
ui_print("Installing Modem KH3... ");
assert(package_extract_file("miuiscotland/modem/KH3/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "3"
then
ui_print("Installing Modem KI3... ");
assert(package_extract_file("miuiscotland/modem/KI3/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "4"
then
ui_print("Installing Modem KI4... ");
assert(package_extract_file("miuiscotland/modem/KI4/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "5"
then
ui_print("Installing Modem KL1... ");
assert(package_extract_file("miuiscotland/modem/KL1/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "6"
then
ui_print("Installing Modem XXLPS... ");
assert(package_extract_file("miuiscotland/modem/XXLPS/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "7"
then
ui_print("Installing Modem NEKF2... ");
assert(package_extract_file("miuiscotland/modem/NEKF2/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
endif;

if
file_getprop("/tmp/aroma/mods.prop","selected.2") == "8"
then
ui_print("Installing Modem NELP2... ");
assert(package_extract_file("miuiscotland/modem/NELP2/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
endif;

delete("/tmp/flash_image");
delete("/tmp/efs_backup.sh");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
run_program("/sbin/umount", "/cache");