ui_print("");
ui_print("Galaxy Nexus maguro Radio Flasher");
ui_print("osm0sis @ xda-developers");
show_progress(0.500000, 0);
ui_print("");

ui_print("Extracting Radio Image...");
assert(package_extract_file("radio.img", "/tmp/radio.img"),
       run_program("/sbin/busybox", "dd", "if=/tmp/radio.img", "of=/dev/block/platform/omap/omap_hsmmc.0/by-name/radio"),
       delete("/tmp/radio.img"));
ui_print("");

ui_print("Successfully flashed.");
show_progress(0.100000, 0);

