Skip to content

Commit

Permalink
Added support for FreeBSD
Browse files Browse the repository at this point in the history
Signed-off-by: Curt Brune <[email protected]>
  • Loading branch information
Mischa Peters authored and Curt Brune committed Nov 21, 2014
1 parent f4f2f95 commit 2da36fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/cscope.out.in
/cscope.out.po
build
local.make
local.make
onie-installer
4 changes: 2 additions & 2 deletions contrib/onie-server/onie-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ def platform_get_ipaddrs():
if (result):
ipaddrs.append(result.group(1))
return ipaddrs
elif sys.platform.startswith('linux') or sys.platform.startswith('darwin'):
elif sys.platform.startswith('linux') or sys.platform.startswith('darwin') or sys.platform.startswith('freebsd')
def platform_get_ipaddrs():
'''
Mac OSX output:
Mac OSX / FreeBSD output:
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 78:31:c1:b9:c0:64
inet6 fe80::7a31:c1ff:feb9:c064%en0 prefixlen 64 scopeid 0x4
Expand Down

0 comments on commit 2da36fa

Please sign in to comment.