Permalink
Browse files

[networking] fix for option case in rc.conf

[packaging] deps for loadavg
  • Loading branch information...
1 parent d5428fc commit 8463e73d2a6739200d3596ceab1d74d68c16469c @Eugeny Eugeny committed Oct 17, 2010
Showing with 5 additions and 2 deletions.
  1. +1 −0 plugins/loadavg_bsd/info
  2. +1 −0 plugins/loadavg_linux/info
  3. +1 −0 plugins/network/api.py
  4. +2 −2 plugins/network/nc_bsd.py
@@ -2,3 +2,4 @@ pkg loadavg-bsd
desc BSD backend for system stats dashboard widget
dep freecolor
prov ajenti-plugin-loadavg-backend
+dep ajenti-plugin-loadavg
@@ -1,3 +1,4 @@
pkg loadavg-linux
desc Linux backend for system stats dashboard widget
prov ajenti-plugin-loadavg-backend
+dep ajenti-plugin-loadavg
@@ -70,6 +70,7 @@ def __init__(self):
self.auto = False
self.name = ''
self.devclass = ''
+ self.addressing = 'static'
self.bits = []
self.params = {'address': '0.0.0.0'}
self.type = ''
@@ -39,10 +39,10 @@ def rescan(self):
if not iface.auto:
s = s[:-1]
- if s[0] == 'DHCP':
+ if s[0].upper() == 'DHCP':
iface.type = 'inet'
iface.addressing = 'dhcp'
- if s[0] in ['inet', 'inet6']:
+ if s[0].lower() in ['inet', 'inet6']:
iface.type = s[0]
iface.addressing = 'static'
iface.params['address'] = s[1]

0 comments on commit 8463e73

Please sign in to comment.