summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-20 04:40:17 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-20 04:40:17 +0000
commit08b3094733e0885c4fc9fb87f9cb8d3c3a66091d (patch)
tree7266f0e6dc5191610a3f36845249ccb37cca040f /perl-install/standalone
parent25a3e5ca7b8fc56c78c3389110cc336c428d115a (diff)
downloaddrakx-08b3094733e0885c4fc9fb87f9cb8d3c3a66091d.tar
drakx-08b3094733e0885c4fc9fb87f9cb8d3c3a66091d.tar.gz
drakx-08b3094733e0885c4fc9fb87f9cb8d3c3a66091d.tar.bz2
drakx-08b3094733e0885c4fc9fb87f9cb8d3c3a66091d.tar.xz
drakx-08b3094733e0885c4fc9fb87f9cb8d3c3a66091d.zip
use $0 instead of hardcoded path
Diffstat (limited to 'perl-install/standalone')
-rw-r--r--perl-install/standalone/net_applet6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 6b140c4c2..ccb5169b2 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -25,7 +25,6 @@ my $onstartupfile = "$ENV{HOME}/.net_applet";
add_icon_path("/usr/share/libDrakX/pixmaps/");
# Allow multiple instances, but only one per user:
is_running('net_applet') and die "net_applet already running\n";
-my $prog_name = "/usr/bin/net_applet";
my $net = {};
my $watched_interface;
@@ -182,10 +181,9 @@ sub cronNetwork() {
});
}
sub cronUpdate() {
- my $current_md5 = common::md5file($prog_name);
+ my $current_md5 = common::md5file($0);
$update_timeout = Glib::Timeout->add(60000, sub {
- my $new_md5 = common::md5file($prog_name);
- $new_md5 ne $current_md5 and exec($prog_name);
+ common::md5file($0) ne $current_md5 and exec($0);
});
}
sub go2State {