From 59c8a5333eff06b11d4aabc7ef21b46e35c573a5 Mon Sep 17 00:00:00 2001 From: freesource Date: Mon, 11 Mar 2002 17:25:01 +0000 Subject: [PATCH] This only checks Root_Fs for $ubd0, which makes a lot more sense and avoides unecessary duplications. --- BootRoot/BootRoot.pm | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/BootRoot/BootRoot.pm b/BootRoot/BootRoot.pm index 03209c8..7cc6439 100644 --- a/BootRoot/BootRoot.pm +++ b/BootRoot/BootRoot.pm @@ -1823,6 +1823,18 @@ sub uml_box { } + if ( $mtd_radio_mtdram->get_active() ) { + + # Check for the existence mem= + if ( m,mem=, ) { + $mem = 1; + } + + } + + } + + for ( $entry_advanced[10] ) { # Grab the file being used if ( $mtd_radio_blkmtd->get_active() ) { if ( m,(ubd\d{1}\w?=[/\d\.\+\w-]+), ) { @@ -1841,18 +1853,9 @@ sub uml_box { } } } - - if ( $mtd_radio_mtdram->get_active() ) { - - # Check for the existence mem= - if ( m,mem=, ) { - $mem = 1; - } - - } - } + my ($total_size, $fs_type, $erasure_size); # total size