From 12e546c94df7a2d59503dc4f575853210c93f8ab Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 21 Jun 2005 10:24:23 +0000 Subject: write configuration when the default boot entry is modified --- drakpxelinux.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drakpxelinux.pl b/drakpxelinux.pl index c9dc153..211ea90 100644 --- a/drakpxelinux.pl +++ b/drakpxelinux.pl @@ -817,7 +817,10 @@ my $labelscombo = Gtk2::OptionMenu->new; #my @labelslist = list_label_pxe; my $defaultlabel = $pxelinux_conf->{default}; $labelscombo->entry->set_text($defaultlabel); -$labelscombo->entry->signal_connect("changed", sub { $pxelinux_conf->{default} = $labelscombo->entry->get_text }); +$labelscombo->entry->signal_connect("changed", sub { + $pxelinux_conf->{default} = $labelscombo->entry->get_text; + write_conf(); +}); my @o = network::pxe::list_pxelinux_labels($pxelinux_conf); $labelscombo->set_popdown_strings("", sort(@o)); -- cgit v1.2.1