diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2009-01-27 17:30:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2009-01-27 17:30:08 +0000 |
commit | 5ce8d30439463838f845c78bc926cc9b310a8743 (patch) | |
tree | bb1852dc58711c7baee31216a765067dfa49b65b /src/dia_kernelopts.inc | |
parent | 10658e71475bd964263d09f1a661f24fadfaf496 (diff) | |
download | bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.gz bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.bz2 bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.tar.xz bootloader-theme-5ce8d30439463838f845c78bc926cc9b310a8743.zip |
imported openSUSE.tar.bz2 (from gfxboot-4.1.19-2.1.src.rpm)4.1.19.1
Diffstat (limited to 'src/dia_kernelopts.inc')
-rw-r--r-- | src/dia_kernelopts.inc | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/src/dia_kernelopts.inc b/src/dia_kernelopts.inc new file mode 100644 index 0000000..942efb6 --- /dev/null +++ b/src/dia_kernelopts.inc @@ -0,0 +1,94 @@ +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% +% Kernel options dialog. +% +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% Some global vars. +% +/kernelopts.default 0 def + +/kernelopts.options [ + "" + "apm=off acpi=off mce=off barrier=off ide=nodma idewait=50 i8042.nomux psmouse.proto=bare irqpoll pci=nommconf" + "acpi=off" + "nolapic" +] def + + +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% Build kernelopts list. +% +% ( ) ==> ( ) +% +/kernelopts.init { + /xmenu.kernelopts .xm_size array def + + /xmenu xmenu.kernelopts def + + xmenu .xm_current kernelopts.default put + xmenu .xm_list [ + /txt_kernel_default + /txt_kernel_safe + /txt_kernel_noacpi + /txt_kernel_nolapic + ] put + xmenu .xm_title /txt_kernel put + +} def + + +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% Update kernelopts mode. +% +% ( ) ==> ( ) +% +/kernelopts.update { + /xmenu xmenu.kernelopts def + + /window.action actRedrawPanel def +} def + + +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% Show kernelopts menu. +% +% ( ) => ( ) +% +/panel.kernelopts { + "main" help.setcontext + + window.xmenu + dup .xmenu xmenu.kernelopts put + dup .xmenu.update /kernelopts.update put + dup window.init + window.show +} def + + +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% Return width of panel entry. +% +% ( ) => ( width ) +% +/panel.kernelopts.width { + /xmenu xmenu.kernelopts def + + pmenu.width +} def + + +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% Redraw panel entry. +% +% ( panel ) => ( ) +% +/panel.kernelopts.update { + /xmenu xmenu.kernelopts def + + pmenu.panel.update +} def + + |