loboris 9 lat temu
rodzic
commit
2b17c95cf8

+ 6 - 0
C2/initramfs/ramfs/backup.script

@@ -317,6 +317,9 @@ exit_script() {
 			_delay=30
 			if [ "${B}" = "E" ] || [ "${B}" = "e" ]; then
 				break
+			elif [ "${B}" = "s" ]; then
+				# SCREENSHOT ===
+				fbcat > /backup_exit.ppm
 			fi
 		else
 			let _delay=_delay-1
@@ -504,6 +507,9 @@ while [ $_delay -gt 0 ]; do
 		elif [ "${B}" = "E" ] || [ "${B}" = "e" ]; then
 			_delay=0
 			break
+		elif [ "${B}" = "s" ]; then
+			# SCREENSHOT ===
+			fbcat > /backup.ppm
 		fi
 	else
 		let _delay=_delay-1

+ 4 - 0
C2/initramfs/ramfs/init

@@ -907,10 +907,14 @@ while true; do
 				fi
 			done
 			if [ $_reboot_delay -eq 0 ]; then
+				cp -f /*.ppm /mnt1 > /dev/null 2>&1
 				umount /mnt1 > /dev/null 2>&1
 				umount /mnt2 > /dev/null 2>&1
 				reboot
 			fi
+		elif [ "${A}" = "s" ]; then
+			# SCREENSHOT ===
+			fbcat > /mb_menu.ppm
 		elif [ ! "${BOOT_FROM}" = "none" ]; then
 			# === BOOT to selected OS
 			boot_fail="no"

+ 6 - 0
C2/initramfs/ramfs/install.script

@@ -195,6 +195,9 @@ exit_script() {
 			_delay=60
 			if [ "${B}" = "E" ] || [ "${B}" = "e" ]; then
 				break
+			elif [ "${B}" = "s" ]; then
+				# SCREENSHOT ===
+				fbcat > /install_exit.ppm
 			fi
 		else
 			let _delay=_delay-1
@@ -2101,6 +2104,9 @@ while [ $_inst_delay -gt 0 ]; do
 				print_header
 				print_settings
 			fi
+		elif [ "${A}" = "s" ]; then
+			# SCREENSHOT ===
+			fbcat > /install.ppm
 		fi
     else
 		[ $INST_DELAY -lt 60 ] && let _inst_delay=_inst_delay-1

BIN
C2/multiboot/uInitrd.multi


+ 11 - 9
README.md

@@ -1,12 +1,14 @@
-Boot menu and tools for Odroid XU3/XU4 & C2
+MultiBoot menu and tools for Odroid XU3/XU4 & C2
 ===========================================
 
 About
 -----
 
-Boot menu for selecting available OS to boot to\
-Backup tool for backup operating system(s) from multiboot card or original Odroid card\
-Universal installer which can install **android**, **linux**, **OpenELEC** or any combinations (**multiboot**) from USB drive.\
+Boot menu for selecting from available OS's<br />
+Backup tool for backup operating system(s) from multiboot card or original Odroid card<br />
+Universal installer which can install **android**, **linux**, **OpenELEC** or any combinations (**multiboot**) from USB drive.<br />
+
+---
 
 **Multiboot features**
 
@@ -31,16 +33,16 @@ Universal installer which can install **android**, **linux**, **OpenELEC** or an
 
 **Backup features**
 
-- backup **multiboot** SDCard or EMMC to USB drive
-- backup **original Odroid** SDCard or EMMC to USB drive
+- backup **multiboot** SDCard or EMMC (all installed operating systems) to USB drive
+- backup **original Odroid** SDCard or EMMC (Android or Linux) to USB drive
 - backup on USB drive can be used as source for **Installer**
 
 **Installer usage**
 
-- use **prepared multiboo installer images**, in **multiboot_install.zip**, unzip to some empty directora
-- run `sudo dd if=multiboot_install_[c2|xu4] of=/dev/sdX bs=1MB oflag=direct`
+- use **prepared multiboot installer images**, in **multiboot_install_images.zip**, unzip to some empty directory
+- run `sudo dd if=multiboot_install_[c2|xu4].img of=/dev/sdX bs=1MB oflag=direct`
 - **or**
-- build the installer sdcard/image running `sudo ./prepare_selfinst <destination_card>|<destination_image_name> [board]`
+- build the installer sdcard/image running `sudo ./prepare_selfinst <destination_card>|<destination_image_name> c2|xu4`
 - if the image file is created, you can write the image to SDCard using dd command.
   - copy your installation sources (Android update image **update.zip**, Linux **.img**, OpenELEC **.tar** file) to the first partition of your USB drive
   - **rename** the Linux installation image to **linux.img** !

+ 6 - 0
XU4/initramfs/ramfs/backup.script

@@ -317,6 +317,9 @@ exit_script() {
 			_delay=30
 			if [ "${B}" = "E" ] || [ "${B}" = "e" ]; then
 				break
+			elif [ "${B}" = "s" ]; then
+				# SCREENSHOT ===
+				fbcat > /backup_exit.ppm
 			fi
 		else
 			let _delay=_delay-1
@@ -504,6 +507,9 @@ while [ $_delay -gt 0 ]; do
 		elif [ "${B}" = "E" ] || [ "${B}" = "e" ]; then
 			_delay=0
 			break
+		elif [ "${B}" = "s" ]; then
+			# SCREENSHOT ===
+			fbcat > /backup.ppm
 		fi
 	else
 		let _delay=_delay-1

BIN
XU4/initramfs/ramfs/bin/fbcat


+ 4 - 0
XU4/initramfs/ramfs/init

@@ -907,10 +907,14 @@ while true; do
 				fi
 			done
 			if [ $_reboot_delay -eq 0 ]; then
+				cp -f /*.ppm /mnt1 > /dev/null 2>&1
 				umount /mnt1 > /dev/null 2>&1
 				umount /mnt2 > /dev/null 2>&1
 				reboot
 			fi
+		elif [ "${A}" = "s" ]; then
+			# SCREENSHOT ===
+			fbcat > /mb_menu.ppm
 		elif [ ! "${BOOT_FROM}" = "none" ]; then
 			# === BOOT to selected OS
 			boot_fail="no"

+ 6 - 0
XU4/initramfs/ramfs/install.script

@@ -195,6 +195,9 @@ exit_script() {
 			_delay=60
 			if [ "${B}" = "E" ] || [ "${B}" = "e" ]; then
 				break
+			elif [ "${B}" = "s" ]; then
+				# SCREENSHOT ===
+				fbcat > /install_exit.ppm
 			fi
 		else
 			let _delay=_delay-1
@@ -2101,6 +2104,9 @@ while [ $_inst_delay -gt 0 ]; do
 				print_header
 				print_settings
 			fi
+		elif [ "${A}" = "s" ]; then
+			# SCREENSHOT ===
+			fbcat > /install.ppm
 		fi
     else
 		[ $INST_DELAY -lt 60 ] && let _inst_delay=_inst_delay-1

BIN
XU4/multiboot/uInitrd.multi


BIN
multiboot_install.zip → multiboot_install_images.zip