summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-11-14 13:56:26 +0000
committerOlivier Blin <oblin@mandriva.org>2005-11-14 13:56:26 +0000
commite52ce023e855d0e1a005a908315eab2a886ecaef (patch)
tree673d33d443785501156ccdfc19bf5f4890653cbc /perl-install/standalone
parent973875cd9e641540bc27eeb052ab4e57352aa404 (diff)
downloaddrakx-e52ce023e855d0e1a005a908315eab2a886ecaef.tar
drakx-e52ce023e855d0e1a005a908315eab2a886ecaef.tar.gz
drakx-e52ce023e855d0e1a005a908315eab2a886ecaef.tar.bz2
drakx-e52ce023e855d0e1a005a908315eab2a886ecaef.tar.xz
drakx-e52ce023e855d0e1a005a908315eab2a886ecaef.zip
don't crash if mandi isn't started
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakroam5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/drakroam b/perl-install/standalone/drakroam
index 19a40f57e..f428a0164 100755
--- a/perl-install/standalone/drakroam
+++ b/perl-install/standalone/drakroam
@@ -53,8 +53,9 @@ my $wireless_list = Gtk2::SimpleList->new(
);
$wireless_list->get_selection->set_mode('single');
-my $dbus = dbus_object::system_bus();
-my $monitor = network::monitor->new($dbus);
+my ($dbus, $monitor);
+eval { $dbus = dbus_object::system_bus() };
+eval { $monitor = network::monitor->new($dbus) } if $dbus;
my $wireless_networks = {};
my $has_roaming;