diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2009-01-27 17:30:42 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2009-01-27 17:30:42 +0000 |
commit | c8229b8b052d41f9e9df0553b015e88a7493f8f7 (patch) | |
tree | de05cecf917df0686c66aec303b266b566927622 /src | |
parent | e73eea7e7d4e482f12125cdc0689dd31fe114547 (diff) | |
download | bootloader-theme-c8229b8b052d41f9e9df0553b015e88a7493f8f7.tar bootloader-theme-c8229b8b052d41f9e9df0553b015e88a7493f8f7.tar.gz bootloader-theme-c8229b8b052d41f9e9df0553b015e88a7493f8f7.tar.bz2 bootloader-theme-c8229b8b052d41f9e9df0553b015e88a7493f8f7.tar.xz bootloader-theme-c8229b8b052d41f9e9df0553b015e88a7493f8f7.zip |
do not check there is enough memory
maybe a better solution would be to adapt the "enough memory" check to
our needs
Diffstat (limited to 'src')
-rw-r--r-- | src/common.inc | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/common.inc b/src/common.inc index af6a46d..53f616d 100644 --- a/src/common.inc +++ b/src/common.inc @@ -60,18 +60,6 @@ % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % -% Enough memory? -% -% ( ) ==> ( true|false ) -% -/enough_mem { - biosmem 4 20 shl lt - biosmem mem.check 20 shl ge or -} def - - -% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -% % Check if there are boot directories for 32 & 64bit. % % Assumes 32bit to be in *i586* and 64bit in *x86_64*. @@ -215,11 +203,6 @@ menu.texts menu.entry 0 max menu.texts length 1 sub min get dup "mem.min[%s]" mem.min sprintf "mem.msg[%s]" mem.msg sprintf - - enough_mem not { - nomem_popup - "" -1 0 return - } if } if % some tricks to make it possible to review the complete command line @@ -1374,25 +1357,6 @@ % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -% Warn that we don't have enough memory. -% -% ( ) ==> ( ) -% -/nomem_popup { - window.dialog - - dup .title "Sorry, but..." put - dup .text mem.show put - dup .buttons [ - button.ok button.default actNothing button.setaction - ] put - dup window.init - window.show - -} def - - -% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % Show "power off" popup. % % ( ) ==> ( ) @@ -1549,17 +1513,6 @@ ptheme { % Array of menu entries which should not get an 'install' option appended. /config.noinstallopt "noinstallopt" [ ] gfxconfig.set.array_str -% Mininum required memory in MB. -/mem.check { - mem.min gfxconfig.int dup .undef eq { pop 0 } if -} def - -% Message to print if we fail minimum memory requirement. -/mem.show { - mem.msg gfxconfig.str dup .undef eq { pop "Not enough memory." } if -} def - - % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % drawing area size |