From 06507452d62fdbe5f9ff42e1188348704976ccd4 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 5 Feb 2008 14:03:47 +0000 Subject: (shouldStart) simplify --- mdkapplet | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mdkapplet b/mdkapplet index c7eff751..dd57bfd4 100755 --- a/mdkapplet +++ b/mdkapplet @@ -440,8 +440,7 @@ sub isNetwork() { sub shouldStart() { my %p = getVarsFromSh($localfile); - my $ret = $p{AUTOSTART} eq 'FALSE' ? 0 : 1; - $ret; + to_bool($p{AUTOSTART} ne 'FALSE'); } sub setState { -- cgit v1.2.1