summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-04 23:56:21 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-04 23:56:21 +0100
commitef866c1e3f35e7d5e863b91f2a44a7376ca4d180 (patch)
treee44f0aade0d0aae6b54a03628dbcc4b1ffce60da
parentb86df5489d338acc09a191ea8f98ae8165f7a3e3 (diff)
vnet: Do not run while on WWAN
-rwxr-xr-xbin/vnet5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/vnet b/bin/vnet
index 0eb15ee..e6722ab 100755
--- a/bin/vnet
+++ b/bin/vnet
@@ -19,6 +19,11 @@ my $share = $0;
my ($ext_ip, $int_ip);
sub get_ext_ip {
+
+ if (-d '/sys/class/net/ppp0') {
+ return qq{-};
+ }
+
my $ua = LWP::UserAgent->new(
env_proxy => 0
);