summaryrefslogtreecommitdiff
path: root/examples/ruby
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2012-08-24 09:48:19 +0200
committerJiří Klimeš <jklimes@redhat.com>2012-08-24 09:48:19 +0200
commit3fe99e7ebf9c4b75807037b9095c0fa25991d052 (patch)
treebda3e06cd865a3ed56a77b4602f6fd97ade873f7 /examples/ruby
parentb39804ae6b978b84b6a5369fd1e10498bdadf37f (diff)
downloadNetworkManager-3fe99e7ebf9c4b75807037b9095c0fa25991d052.tar.gz
examples: update examples for new device types
Diffstat (limited to 'examples/ruby')
-rwxr-xr-xexamples/ruby/list-devices.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/ruby/list-devices.rb b/examples/ruby/list-devices.rb
index 5831a12687..a3bf90f5c3 100755
--- a/examples/ruby/list-devices.rb
+++ b/examples/ruby/list-devices.rb
@@ -16,7 +16,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-# Copyright (C) 2011 Red Hat, Inc.
+# Copyright (C) 2011 - 2012 Red Hat, Inc.
#
require 'dbus'
@@ -26,11 +26,15 @@ require 'dbus'
#
devtypes = { 1 => "Ethernet",
- 2 => "WiFi",
+ 2 => "Wi-Fi",
5 => "Bluetooth",
6 => "OLPC",
7 => "WiMAX",
- 8 => "Modem" }
+ 8 => "Modem",
+ 9 => "InfiniBand",
+ 10 => "Bond",
+ 11 => "VLAN",
+ 12 => "ADSL" }
states = { 0 => "Unknown",
10 => "Unmanaged",