summaryrefslogtreecommitdiffstats
path: root/bin/draknetcenter
diff options
context:
space:
mode:
Diffstat (limited to 'bin/draknetcenter')
-rwxr-xr-xbin/draknetcenter4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/draknetcenter b/bin/draknetcenter
index 7396631..5f01d66 100755
--- a/bin/draknetcenter
+++ b/bin/draknetcenter
@@ -18,7 +18,9 @@ use dbus_object;
#- Allow multiple instances, but only one per user:
is_running('draknetcenter') and die "draknetcenter already running\n";
-my $in = 'interactive'->vnew('su');
+require_root_capability();
+
+my $in = 'interactive'->vnew;
my $net = {};
network::network::read_net_conf($net);
my $dbus;