summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drakpxelinux.pl12
-rw-r--r--drakpxelinux.spec66
2 files changed, 7 insertions, 71 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 9ece3c1..9e32697 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -1030,11 +1030,13 @@ sub refresh_menu() {
$menu_combo->signal_connect(changed => sub {
my $model_profiles = $profiles->get_model;
my $iter = $profiles->get_selection->get_selected;
- ($config_file, $help_file) = network::pxe::get_pxelinux_profile_path($model_profiles->get($iter, 0), 'boot');
- my $new_default = $menu_combo->get_active_text;
- substInFile {
- s/DEFAULT.*/DEFAULT $new_default/;
- } $config_file;
+ if ($iter) {
+ ($config_file, $help_file) = network::pxe::get_pxelinux_profile_path($model_profiles->get($iter, 0), 'boot');
+ my $new_default = $menu_combo->get_active_text;
+ substInFile {
+ s/DEFAULT.*/DEFAULT $new_default/;
+ } $config_file;
+ }
});
}
diff --git a/drakpxelinux.spec b/drakpxelinux.spec
deleted file mode 100644
index fb63eee..0000000
--- a/drakpxelinux.spec
+++ /dev/null
@@ -1,66 +0,0 @@
-Summary: PXE default file configurator
-Name: drakpxelinux
-Version: 1.2.0
-Release: %mkrel 13
-License: GPLv2+
-Group: System/Configuration/Other
-URL: http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/drakpxelinux/
-Source0: %{name}-%{version}.tar.bz2
-Requires: perl-Gtk2, perl-MDK-Common, pxe, drakxtools, tftp-server, xinetd, pxelinux
-Requires(post): desktop-file-utils
-Requires(postun): desktop-file-utils
-Buildarch: noarch
-BuildRoot: %{_tmppath}/%{name}-buildroot
-
-%description
-Quick configuration of PXE menu parameters.
-
-%prep
-
-%setup -q
-
-%build
-
-%install
-rm -rf %{buildroot}
-
-make prefix=%{buildroot} install
-
-# XDG menu
-install -d %{buildroot}%{_datadir}/applications
-cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
-[Desktop Entry]
-Name=Drakpxelinux
-Comment=Mandriva Linux Pxelinux configurator
-Exec=%{_sbindir}/%{name}
-Icon=configuration_section
-Terminal=false
-Type=Application
-Categories=GTK;Settings;X-Mandriva-CrossDesktop;
-EOF
-
-#install lang
-%find_lang %{name}
-
-%post
-%update_menus
-%update_desktop_database
-
-%postun
-%clean_menus
-%clean_desktop_database
-
-%clean
-rm -rf %{buildroot}
-
-%files -f %{name}.lang
-%defattr(-,root,root)
-%doc default TODO COPYING
-%{_sbindir}/%{name}
-%{_sbindir}/deployd
-%{_sbindir}/deploy_get_autoinst.pl
-%{_sysconfdir}/xinetd.d/deployd
-%{_sysconfdir}/xinetd.d/deploy_get_autoinst
-#%{_datadir}/%{name}*
-%{_datadir}/applications/mandriva-%{name}.desktop
-