diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-02 15:16:56 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-02 15:16:56 +0000 |
commit | 5e152be2dd6f708410cb46e671245e649991f92b (patch) | |
tree | ab9e4b573d5217f6b3e4fdcfaa2370fa87483bae /isys | |
parent | 671e0b107cb387e87d2a9763a0a73e81e8e81c02 (diff) | |
download | anaconda-5e152be2dd6f708410cb46e671245e649991f92b.tar.gz anaconda-5e152be2dd6f708410cb46e671245e649991f92b.tar.xz anaconda-5e152be2dd6f708410cb46e671245e649991f92b.zip |
o New interface requirements: exceptionWindow, messageWindow
o Network device configuration, configuration file writing
o Root password dialog, /etc/password modification
o isys has the ntoa and aton functions in it now
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/isys/isys.py b/isys/isys.py index e350d10d0..664cbbfe7 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -1,4 +1,5 @@ import _isys +import string def mount(device, location, fstype = "ext2"): return _isys.mount(fstype, device, location) @@ -30,7 +31,20 @@ def moduleListByType(type): def makeDevInode(name, fn): return _isys.mkdevinode(name, fn) - + +def inet_ntoa (addr): + return "%d.%d.%d.%d" % ((addr >> 24) & 0x000000ff, + (addr >> 16) & 0x000000ff, + (addr >> 8) & 0x000000ff, + addr & 0x000000ff) + +def inet_aton (addr): + quad = string.splitfields (addr, ".") + return ((string.atoi (quad[0]) << 24) + + (string.atoi (quad[1]) << 16) + + (string.atoi (quad[2]) << 8) + + string.atoi (quad[3])) + try: _isys.readmoduleinfo("/modules/module-info") except IOError: |