summaryrefslogtreecommitdiffstats
path: root/bin/drakroam
diff options
context:
space:
mode:
Diffstat (limited to 'bin/drakroam')
-rwxr-xr-xbin/drakroam4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/drakroam b/bin/drakroam
index 0c6c400..0f41bad 100755
--- a/bin/drakroam
+++ b/bin/drakroam
@@ -18,7 +18,9 @@ use network::monitor;
my %args = map { if_(/^--(\w+)=(.*)$/ && member($1, qw(ap interface)), $1 => $2) } @ARGV;
-my $in = 'interactive'->vnew('su');
+require_root_capability();
+
+my $in = 'interactive'->vnew;
my $net = {};
network::network::read_net_conf($net);
my $dbus;