diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-11 12:19:21 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-11 12:19:21 +0000 |
commit | c533675418136697b11fb91e2a608ab68ecb0769 (patch) | |
tree | 0ec5455f08d140854c3acffbf0998decd79d0e8c /net/ris/files/patch-infparser.py | |
parent | Update to 1.24. (diff) |
OpenSource alternative to Microsoft Windows RIS (Remote Installation Services).
You can also use this stuff to install Microsoft Windows from the network.
PR: ports/85630
Submitted by: Alex Deiter <tiamat@komi.mts.ru>
Notes
Notes:
svn path=/head/; revision=142439
Diffstat (limited to '')
-rw-r--r-- | net/ris/files/patch-infparser.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net/ris/files/patch-infparser.py b/net/ris/files/patch-infparser.py new file mode 100644 index 000000000000..b1fe739dcaea --- /dev/null +++ b/net/ris/files/patch-infparser.py @@ -0,0 +1,37 @@ +--- infparser.py.orig Fri Sep 2 14:15:32 2005 ++++ infparser.py Fri Sep 2 14:18:12 2005 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#! @PYTHON_CMD@ + # -*- Mode: Python; tab-width: 4 -*- + # + # Inf Driver parser +@@ -143,7 +143,7 @@ + if name.endswith('.services'): + prefix = name.split('.services', 1)[0] + check = prefix.split('.') +- if check[-1].startswith('nt'): ++ if check[-1].startswith('nt') and not check[-1].endswith('64'): + check = check[:-1] + check = check + ['services'] + name = '.'.join(check) +@@ -154,7 +154,7 @@ + while check[-1].isdigit() and len(check)>1: + check = check[:-1] + +- if check[-1].startswith('nt'): ++ if check[-1].startswith('nt') and not check[-1].endswith('64'): + check = check[:-1] + + name = '.'.join(check) +@@ -283,8 +283,8 @@ + if inffile.split('/').pop() not in exclude: + devlist.update(scan_inf(inffile)) + +- print 'Compiled %d drivers' % len(devlist) ++ print 'Starting inf parser: compiled %d drivers.' % len(devlist) + +- fd = open('devlist.cache','w') ++ fd = open('@DEVLIST_CACHE@','w') + dump(devlist, fd) + fd.close() |